예제 #1
0
 public static System.Numerics.Vector2 ToVector2(this rlbot.flat.Vector3 vec)
 {
     return(new System.Numerics.Vector2(vec.X, vec.Y));
 }
예제 #2
0
 private Vector3 fromFramework(rlbot.flat.Vector3 v)
 {
     return(new Vector3(v.X, v.Y, v.Z));
 }
예제 #3
0
 /// <summary>
 /// Converts a flatbuffers vector to a System.Numerics vector.
 /// </summary>
 /// <param name="vector">The flatbuffers vector.</param>
 /// <returns>Returns a System.Numerics vector.</returns>
 public static Vector3 ToVector3(this rlbot.flat.Vector3 vector)
 {
     return(new Vector3(vector.X, vector.Y, vector.Z));
 }
 public static System.Numerics.Vector3 ToVector3(this rlbot.flat.Vector3 vector)
 {
     return(new System.Numerics.Vector3(vector.X, vector.Y, vector.Z));
 }
예제 #5
0
 public static Vector3 ToVector3(rlbot.flat.Vector3 vec)
 {
     return(new Vector3(vec.X, vec.Y, vec.Z));
 }