Exemple #1
0
 public static SETRotation3 Max(SETRotation3 value1, SETRotation3 value2)
 {
     return(new SETRotation3(
                (value1.X > value2.X) ? value1.X : value2.X,
                (value1.Y > value2.Y) ? value1.Y : value2.Y,
                (value1.Z > value2.Z) ? value1.Z : value2.Z));
 }
Exemple #2
0
 public static SETRotation3 Min(SETRotation3 value1, SETRotation3 value2)
 {
     return(new SETRotation3(
                (value1.X < value2.X) ? value1.X : value2.X,
                (value1.Y < value2.Y) ? value1.Y : value2.Y,
                (value1.Z < value2.Z) ? value1.Z : value2.Z));
 }
Exemple #3
0
 public static SETRotation3 SquareRoot(SETRotation3 value)
 {
     return(new SETRotation3((ushort)Math.Sqrt(value.X), (ushort)Math.Sqrt(value.Y), (ushort)Math.Sqrt(value.Z)));
 }
Exemple #4
0
 public static SETRotation3 Abs(SETRotation3 value)
 {
     return(new SETRotation3((ushort)Math.Abs(value.X), (ushort)Math.Abs(value.Y), (ushort)Math.Abs(value.Z)));
 }
Exemple #5
0
 public static float Dot(SETRotation3 rotation1, SETRotation3 rotation2)
 {
     return(rotation1.X * rotation2.X +
            rotation1.Y * rotation2.Y +
            rotation1.Z * rotation2.Z);
 }
Exemple #6
0
 public bool Equals(SETRotation3 other)
 {
     return(X == other.X &&
            Y == other.Y &&
            Z == other.Z);
 }