public double GetAngleTo(double x, double y) { var absoluteAngleTo = Math.Atan2(y - Y, x - X); var relativeAngleTo = absoluteAngleTo - Angle; return(Geom.AngleNormalize(relativeAngleTo)); }
public double GetAngleTo(double x, double y) { var absoluteAngleTo = Math.Atan2(y - Y, x - X); var relativeAngleTo = absoluteAngleTo - Angle; return(Geom.AngleNormalize(relativeAngleTo)); }