Beispiel #1
0
 public static Vector3Decimal Round(Vector3Decimal d)
 {
     return(new Vector3Decimal(
                decimal.Round(d.x),
                decimal.Round(d.y),
                decimal.Round(d.z)
                ));
 }
Beispiel #2
0
 public static Vector3Decimal Round(Vector3Decimal d, MidpointRounding mode)
 {
     return(new Vector3Decimal(
                decimal.Round(d.x, mode),
                decimal.Round(d.y, mode),
                decimal.Round(d.z, mode)
                ));
 }
Beispiel #3
0
 public static Vector3Decimal Round(Vector3Decimal d, Int32 decimals)
 {
     return(new Vector3Decimal(
                decimal.Round(d.x, decimals),
                decimal.Round(d.y, decimals),
                decimal.Round(d.z, decimals)
                ));
 }
Beispiel #4
0
 public static Vector3Decimal Floor(Vector3Decimal d)
 {
     return(new Vector3Decimal(
                decimal.Floor(d.x),
                decimal.Floor(d.y),
                decimal.Floor(d.z)
                ));
 }
Beispiel #5
0
 public static Vector3Decimal Ceil(Vector3Decimal d)
 {
     return(new Vector3Decimal(
                decimal.Ceiling(d.x),
                decimal.Ceiling(d.y),
                decimal.Ceiling(d.z)
                ));
 }
Beispiel #6
0
 public static bool operator!=(Vector3Decimal lhs, Vector3Decimal rhs)
 {
     return(!Vector3Decimal.Equals(lhs, rhs));
 }
Beispiel #7
0
 public static bool Equals(Vector3Decimal a, Vector3Decimal b)
 {
     return(a.x.Equals(b.x) && a.y.Equals(b.y) && a.z.Equals(b.z));
 }
Beispiel #8
0
 public bool Equals(Vector3Decimal other)
 {
     return(Vector3Decimal.Equals(this, other));
 }