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
Orthonormalize Orthonormalizes a 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:
Returns:

The product of the matrix and original vector.

Return type:

NXOpen.Vector3d

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:
Returns:

The product of the matrix and original point.

Return type:

NXOpen.Point3d

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.