示例#1
0
 /// <param name="angle">In Degrees</param>
 public static Vector2f GetPointInDirection(dynamic point, float angle, float distance)
 {
     angle = (float)Utils.ToRadians(angle);
     return(new Vector2f(point.X + ((float)Math.Cos(angle) * distance), point.Y + ((float)Math.Sin(angle) * distance)));
 }