public static float?GetDistanceBetweenLineAndPoint(this SkeletonLine line, SkeletonPoint point) => line.ToVector2().GetDistanceBetweenLineAndPoint(point.Position);
public static SkeletonPoint GetMiddlePoint(this SkeletonLine line) => new SkeletonPoint(line.ToVector2().GetMiddlePoint());
// 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());
public static double GetOriginalLineAngle(this SkeletonLine line) => line.ToVector2().GetOrigianlLineAngle();