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