dotnet format
This commit is contained in:
parent
34a02fd8bd
commit
5996ec2a5a
@ -73,9 +73,9 @@ public readonly struct Point : IEquatable<Point>
|
|||||||
/// Returns the hash code for this <see cref="Point"/>.
|
/// Returns the hash code for this <see cref="Point"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The hash code for this <see cref="Point"/> structure.</returns>
|
/// <returns>The hash code for this <see cref="Point"/> structure.</returns>
|
||||||
#pragma warning disable IDE0070
|
#pragma warning disable IDE0070
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
#pragma warning restore IDE0070
|
#pragma warning restore IDE0070
|
||||||
{
|
{
|
||||||
int hashCode = 1861411795;
|
int hashCode = 1861411795;
|
||||||
hashCode = hashCode * -1521134295 + X.GetHashCode();
|
hashCode = hashCode * -1521134295 + X.GetHashCode();
|
||||||
|
@ -37,9 +37,9 @@ public class FacePoint : Properties.IFacePoint
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma warning disable IDE0070
|
#pragma warning disable IDE0070
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
#pragma warning restore IDE0070
|
#pragma warning restore IDE0070
|
||||||
{
|
{
|
||||||
int hashCode = 1861411795;
|
int hashCode = 1861411795;
|
||||||
hashCode = hashCode * -1521134295 + _Point.GetHashCode();
|
hashCode = hashCode * -1521134295 + _Point.GetHashCode();
|
||||||
|
@ -74,9 +74,9 @@ public class Location : Properties.ILocation, IEquatable<Location>
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma warning disable IDE0070
|
#pragma warning disable IDE0070
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
#pragma warning restore IDE0070
|
#pragma warning restore IDE0070
|
||||||
{
|
{
|
||||||
int hashCode = -773114317;
|
int hashCode = -773114317;
|
||||||
hashCode = hashCode * -1521134295 + Bottom.GetHashCode();
|
hashCode = hashCode * -1521134295 + Bottom.GetHashCode();
|
||||||
|
@ -130,11 +130,11 @@ internal abstract class Face
|
|||||||
return (review, result);
|
return (review, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static (bool, int[]) GetEyeCollection(int threshold, List<Shared.Models.Face> faces)
|
internal static (bool, int[]) GetEyeCollection(int threshold, List<Models.Face> faces)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
List<int> results = new();
|
List<int> results = new();
|
||||||
foreach (Shared.Models.Face face in faces)
|
foreach (Models.Face face in faces)
|
||||||
{
|
{
|
||||||
if (face.Mapping?.MappingFromLocation?.Eyeα is null || face.Mapping.MappingFromLocation.EyeReview is null)
|
if (face.Mapping?.MappingFromLocation?.Eyeα is null || face.Mapping.MappingFromLocation.EyeReview is null)
|
||||||
continue;
|
continue;
|
||||||
|
@ -28,9 +28,9 @@ public interface IFace
|
|||||||
static (bool?, double?) GetEyeα(Dictionary<FacePart, Models.FacePoint[]> faceParts) =>
|
static (bool?, double?) GetEyeα(Dictionary<FacePart, Models.FacePoint[]> faceParts) =>
|
||||||
Face.GetEyeα(faceParts);
|
Face.GetEyeα(faceParts);
|
||||||
|
|
||||||
(bool, int[]) TestStatic_GetEyeCollection(int threshold, List<Shared.Models.Face> faces) =>
|
(bool, int[]) TestStatic_GetEyeCollection(int threshold, List<Models.Face> faces) =>
|
||||||
GetEyeCollection(threshold, faces);
|
GetEyeCollection(threshold, faces);
|
||||||
static (bool, int[]) GetEyeCollection(int threshold, List<Shared.Models.Face> faces) =>
|
static (bool, int[]) GetEyeCollection(int threshold, List<Models.Face> faces) =>
|
||||||
Face.GetEyeCollection(threshold, faces);
|
Face.GetEyeCollection(threshold, faces);
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user