예제 #1
0
 public double Distance(Float3 b)
 {
     return(Math.Sqrt(DistanceSquared(b)));
 }
예제 #2
0
 public double DistanceSquared(Float3 b)
 {
     return((this - b).LengthSquared);
 }
예제 #3
0
 public double Dot(Float3 a)
 {
     return(X * a.X + Y * a.Y + Z * a.Z);
 }
예제 #4
0
 public static Float3 Max(Float3 a, Float3 b)
 {
     return(new Float3(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y), Math.Max(a.Z, b.Z)));
 }
예제 #5
0
 public static V <double> ToVector(this Float3 p)
 {
     return(new V <double>(new double[] { p.X, p.Y, p.Z }));
 }