public void Stern() { Angle heading = new Angle(new Vector(-1, 0)); Vector relativePosition = new Vector(1, 0); var facing = heading.ToFacing(relativePosition); Assert.AreEqual(Facing.Stern, facing); }
public void Port() { Angle heading = new Angle(new Vector(-1, 0)); Vector relativePosition = new Vector(0, -1); var facing = heading.ToFacing(relativePosition); Assert.AreEqual(Facing.Port, facing); }
public void Starboard() { Angle heading = new Angle(new Vector(1, 0)); Vector relativePosition = new Vector(0, -1); var facing = heading.ToFacing(relativePosition); Assert.AreEqual(Facing.Starboard, facing); }
public void BowIsBow() { Angle heading = new Angle(new Vector(0, 1)); Vector relativePosition = new Vector(0, 1); var facing = heading.ToFacing(relativePosition); Assert.AreEqual(Facing.Bow, facing); }