MathUtils Class¶
-
class
NXOpen.
MathUtils
¶ Bases:
object
Contains various math utility methods
To obtain an instance of this class, refer to
NXOpen.Session
New in version NX3.0.0.
Methods¶
Method | Description |
---|---|
Multiply | Returns a vector which is the product of a 3x3 matrix and a 3D vector @return The product of the matrix and original vector. |
Orthonormalize | Orthonormalizes a matrix @return An orthonormalized version of the input matrix. |
Method Detail¶
Multiply¶
-
MathUtils.
Multiply
¶ Overloaded method Multiply
Multiply(matrix, originalVector)
Multiply(matrix, originalPoint)
-------------------------------------
Returns a vector which is the product of a 3x3 matrix and a 3D vector
Signature
Multiply(matrix, originalVector)
Parameters: - matrix (
NXOpen.Matrix3x3
) – The transform matrix. - originalVector (
NXOpen.Vector3d
) – The original vector we want to multiply with the matrix
Returns: The product of the matrix and original vector.
Return type: New in version NX6.0.0.
License requirements: None.
-------------------------------------
Returns a point which is the product of a 3x3 matrix and a 3D point
Signature
Multiply(matrix, originalPoint)
Parameters: - matrix (
NXOpen.Matrix3x3
) – The transform matrix. - originalPoint (
NXOpen.Point3d
) – The original point we want to multiply with the matrix
Returns: The product of the matrix and original point.
Return type: New in version NX6.0.0.
License requirements: None.
-------------------------------------
Orthonormalize¶
-
MathUtils.
Orthonormalize
¶ Orthonormalizes a matrix
Signature
Orthonormalize(original)
Parameters: original ( NXOpen.Matrix3x3
) – The original matrix. Must have a non-zero determinant.Returns: An orthonormalized version of the input matrix. Return type: NXOpen.Matrix3x3
New in version NX3.0.0.
License requirements: None.