public void FromPoints() { var cirPt = CircularPoint.FromPoints(new Point(10, 10), new Point(10, 12)); Assert.Equal(2, cirPt.Length, 2); Assert.Equal(270, cirPt.AngleInDegrees, 2); }
public void CreateCPLength(double x, double y, double length) => Assert.Equal(length, CircularPoint.FromVectors(new Vector(1, 0), new Vector(x, y)).Length, 3);
public void CreateCPAngle(double x, double y, double angle) => Assert.Equal(angle, CircularPoint.FromVectors(new Vector(1, 0), new Vector(x, y)).AngleInDegrees, 3);