public void SingleAngle() { Vector v1 = new Vector(0, 1); double angle = VectorUtil.Angle(v1); Assert.AreEqual(90, AngleUtil.ToDegrees(angle)); }
public void Angle() { Vector v1 = new Vector(0, 1); Vector v2 = new Vector(1, -1); double angle = VectorUtil.Angle(v1, v2); Assert.AreEqual(135, AngleUtil.ToDegrees(angle)); }
public void Angle() { Vector v1 = new Vector(1, 1); Assert.AreEqual(45, AngleUtil.ToDegrees(v1.Angle)); }