using BBIWARG.Utility; namespace BBIWARG.Recognition.FingerRecognition { /// /// A Finger consists of multiple FingerSlices, each one represented by a line preferably orthogonal to the fingers direction. /// public class FingerSlice { /// /// the direction of the slice /// public Vector2D Direction { get { return LineSegment.Direction; } } /// /// the end point of the slice /// public Vector2D End { get; private set; } /// /// the length of the slice (in pixels) /// public float Length { get { return LineSegment.Length; } } /// /// the line segment connecting start and end /// public LineSegment2D LineSegment { get; private set; } /// /// the point in the middle of the slice /// public Vector2D Mid { get; private set; } /// /// the start point of the slice /// public Vector2D Start { get; private set; } /// /// Initializes a new instance of the FingerSlice class. /// /// The start point /// The end point public FingerSlice(Vector2D start, Vector2D end) { Start = start; End = end; Mid = (start + end) / 2; LineSegment = new LineSegment2D(Start, End); } } }