Exemple #1
0
 public static NVector3 FromVector3Int(this NVector3 self, Vector3Int nVector)
 {
     self.X = nVector.x;
     self.Y = nVector.y;
     self.Z = nVector.z;
     return(self);
 }
Exemple #2
0
 public static bool Equal(this NVector3 self, NVector3 rhs)
 {
     if (rhs == null)
     {
         return(false);
     }
     return(self.X == rhs.X && self.Y == rhs.Y && self.Z == rhs.Z);
 }
Exemple #3
0
 public static Vector3Int ToVector3Int(this NVector3 self)
 {
     return(new Vector3Int(self.X, self.Y, self.Z));
 }
Exemple #4
0
 public static Vector3Int FromNVector3(this Vector3Int self, NVector3 nVector)
 {
     return(new Vector3Int(nVector.X, nVector.Y, nVector.Z));
 }
Exemple #5
0
 public static string String(this NVector3 self)
 {
     return(string.Format("({0},{1},{2})", self.X, self.Y, self.Z));
 }