public static double[] Normal(this IRefPlane plane, IMathUtility math) { var transform = plane.Transform; var normalWorld = math.Vector(new[] { 0.0, 0, 1 }); return(normalWorld.MultiplyTransformTs(transform).ArrayData.CastArray <double>()); }
public static double[] Normal(this IRefPlane plane, IMathUtility math) { var transform = plane.Transform; var normalWorld = math.Vector(new[] {0.0, 0, 1}); return normalWorld.MultiplyTransformTs(transform).ArrayData.CastArray<double>(); }
public static bool PlaneNormalEquals(this IRefPlane p, IMathUtility mathUtility, double[] normal, double tol) { return MathPointExtensions.Equals(mathUtility.Vector(p.Normal(mathUtility)), mathUtility.Vector(normal), tol); }
public static bool PlaneNormalEquals(this IRefPlane p, IMathUtility mathUtility, double[] normal, double tol) { return(MathPointExtensions.Equals(mathUtility.Vector(p.Normal(mathUtility)), mathUtility.Vector(normal), tol)); }
public static MathTransform IdentityTransform(this IMathUtility math) { return(math.ComposeTransform(math.Vector(new double[] { 0, 0, 0 }))); }
public static MathVector Mv(this IMathUtility m, double[] v) => m.Vector(v);
public static MathVector ZAxis(this IMathUtility m) => _ZAxis ?? (_ZAxis = m.Vector(_ZAxisArray));
public static MathVector ToSWVector(this Vector3 v, IMathUtility m) => m.Vector(new double[] { v.X, v.Y, v.Z });