public static LineF RotateLineAroundPoint(LineF ln, PointF pt, double ang) { return(new LineF( RotatePoint(ln.p1, pt, ang), RotatePoint(ln.p2, pt, ang))); }
public static double LineAngle(LineF ln) { return(Math.Atan2(ln.p2.Y - ln.p1.Y, ln.p2.X - ln.p1.X)); }
public static LineF RotateLine(LineF ln, double ang) { PointF center = PointOps.Mult(PointOps.Add(ln.p1, ln.p2), 0.5f); return(RotateLineAroundPoint(ln, center, ang)); }