Esempio n. 1
0
 public static float?GetDistanceBetweenLineAndPoint(this SkeletonLine line, SkeletonPoint point)
 => line.ToVector2().GetDistanceBetweenLineAndPoint(point.Position);
Esempio n. 2
0
 public static SkeletonPoint GetMiddlePoint(this SkeletonLine line)
 => new SkeletonPoint(line.ToVector2().GetMiddlePoint());
Esempio n. 3
0
 //  Returns Point of intersection if do intersect otherwise default Point (null)
 public static Vector2?FindIntersection(this SkeletonLine lineA, SkeletonLine lineB)
 => lineA.ToVector2().FindIntersection(lineB.ToVector2());
Esempio n. 4
0
 public static double GetOriginalLineAngle(this SkeletonLine line)
 => line.ToVector2().GetOrigianlLineAngle();