示例#1
0
 internal void SetHeading(double heading)
 {
     Heading = VecUtils.RotateByDegrees(Location, heading);
     foreach (Ray ray in Rays)
     {
         ray.SetHeading(heading);
     }
 }
示例#2
0
 public Ray(Vector2 location, int initialHeading)
 {
     Location         = location;
     Direction        = VecUtils.RotateByDegrees(Location, initialHeading);
     __InitialHeading = initialHeading;
 }
示例#3
0
 internal void SetHeading(double heading_Deg)
 {
     Direction = VecUtils.RotateByDegrees(Location, __InitialHeading + heading_Deg);
 }