public static void SaveVec2iToFile(BinaryWriter bw, Vec2i Vec)
 {
     bw.Write(BitConverter.GetBytes(Vec.X));
     bw.Write(BitConverter.GetBytes(Vec.Y));
 }
 public static Vec2d GetDirectionVec2Toward(Vec2i Origin, Vec2i EndPoint) => Vec2Utils.GetDirectionVec2Toward(Origin.CloneAsVec2d(), EndPoint.CloneAsVec2d());
 public static Vec2d GetClampedVec2(Vec2i Vec, double Lenght) => Vec2Utils.GetClampedVec2(Vec.CloneAsVec2d(), Lenght);
 public static Vec2d GetRotatedByDeg(Vec2i Vec, double Deg) => Vec2Utils.GetRotatedByDeg(Vec.CloneAsVec2d(), Deg);
 public static Vec2d GetUnitVec2(Vec2i Vec) => Vec2Utils.GetUnitVec2(Vec.CloneAsVec2d());
 public static Vec2d GetRotatedByRad(Vec2i Vec, double Rad) => Vec2Utils.GetRotatedByRad(Vec.CloneAsVec2d(), Rad);
 public static double GetAngleBetween_Deg(Vec2i V1, Vec2i V2) => Vec2Utils.GetAngleBetween_Deg(V1.CloneAsVec2d(), V2.CloneAsVec2d());
 public static double GetDotBetween(Vec2i V1, Vec2i V2) => Vec2Utils.GetDotBetween(V1.CloneAsVec2d(), V2.CloneAsVec2d());
 public static double GetDistance(Vec2i Vec1, Vec2i Vec2) => Vec2Utils.GetDistance(Vec1.CloneAsVec2d(), Vec2.CloneAsVec2d());
Exemple #10
0
 public static double GetLenght(Vec2i Vec) => Vec2Utils.GetLenght(Vec.CloneAsVec2d());