maxon.SqMat3

Description

A 3x3 matrix

Inheritance diagram

Inheritance

Parent Class:

Children Classes:

Attributes

maxon.SqMat3.V

Methods Signature

GetLength()

Returns a vector composed by length of each component.

GetNormalized()

Returns a normalized matrix.

GetTransposed()

Returns the transposed matrix.

Normalize()

Normalize all vectors of the matrix.

SetIdentity()

Defines the default identity matrix

__init__([v1_in, v2_in, v3_in])

Initializes a new three components square matrix.

Methods Definition

SqMat3.GetLength()

Returns a vector composed by length of each component.

Returns

The matrix length.

Return type

maxon.Vector

SqMat3.GetNormalized()

Returns a normalized matrix.

Returns

The normalized matrix.

Return type

maxon.SqMat3

SqMat3.GetTransposed()

Returns the transposed matrix.

Returns

The transposed matrix.

Return type

maxon.SqMat3

SqMat3.Normalize()

Normalize all vectors of the matrix.

SqMat3.SetIdentity()

Defines the default identity matrix

SqMat3.__init__(v1_in=None, v2_in=None, v3_in=None)
Initializes a new three components square matrix.

When passing no arguments, the identity matrix will be constructed. The type can otherwise
be only instantiated three at the moment, setting all three components individually.
..note:

This type should not be instantiated directly as this can lead to crashes, use instead the type maxon.Matrix.

Parameters
  • v1_in (Optional[maxon.Vec3]) – If v1_in is the only passed argument, set this to v1_in/v2_in/v3_in components. Otherwise, set the v1 component.

  • v2_in (Optional[maxon.Vec3]) – The v2 component. Can only be passed if v3_in is also defined.

  • v3_in (Optional[maxon.Vec3]) – The v3 component.