LMatrix4f

from panda3d.core import LMatrix4f
class LMatrix4f

Bases: DTOOL_SUPER_BASE

This is a 4-by-4 transform matrix.

Inheritance diagram

Inheritance diagram of LMatrix4f

class CRow

Bases: DTOOL_SUPER_BASE

__init__(*args, **kwargs)
operatorTypecast()

C++ Interface: operator_typecast(CRow self)

operator_typecast()

C++ Interface: operator_typecast(CRow self)

class Row

Bases: DTOOL_SUPER_BASE

These helper classes are used to support two-level operator [].

__init__(*args, **kwargs)
operatorTypecast()

C++ Interface: operator_typecast(Row self)

operator_typecast()

C++ Interface: operator_typecast(Row self)

__init__(*args, **kwargs)
accumulate()

C++ Interface: accumulate(const LMatrix4f self, const LMatrix4f other, float weight)

/**
  • Computes (*this) += other * weight.

*/

addHash()

C++ Interface: add_hash(LMatrix4f self, int hash) add_hash(LMatrix4f self, int hash, float threshold)

/**
  • Adds the vector into the running hash.

*/

/**
  • Adds the vector into the running hash.

*/

add_hash()

C++ Interface: add_hash(LMatrix4f self, int hash) add_hash(LMatrix4f self, int hash, float threshold)

/**
  • Adds the vector into the running hash.

*/

/**
  • Adds the vector into the running hash.

*/

almostEqual()

C++ Interface: almost_equal(LMatrix4f self, const LMatrix4f other) almost_equal(LMatrix4f self, const LMatrix4f other, float threshold)

/**
  • Returns true if two matrices are memberwise equal within a default

  • tolerance based on the numeric type.

*/

/**
  • Returns true if two matrices are memberwise equal within a specified

  • tolerance. This is faster than the equivalence operator as this doesn’t

  • have to guarantee that it is transitive.

*/

almost_equal()

C++ Interface: almost_equal(LMatrix4f self, const LMatrix4f other) almost_equal(LMatrix4f self, const LMatrix4f other, float threshold)

/**
  • Returns true if two matrices are memberwise equal within a default

  • tolerance based on the numeric type.

*/

/**
  • Returns true if two matrices are memberwise equal within a specified

  • tolerance. This is faster than the equivalence operator as this doesn’t

  • have to guarantee that it is transitive.

*/

assign()

C++ Interface: assign(const LMatrix4f self, const LMatrix4f other) assign(const LMatrix4f self, float fill_value)

/**

*/

cols
compareTo()

C++ Interface: compare_to(LMatrix4f self, const LMatrix4f other) compare_to(LMatrix4f self, const LMatrix4f other, float threshold)

/**
  • This flavor of compare_to uses a default threshold value based on the

  • numeric type.

*/

/**
  • Sorts matrices lexicographically, componentwise. Returns a number less

  • than 0 if this matrix sorts before the other one, greater than zero if it

  • sorts after, 0 if they are equivalent (within the indicated tolerance).

*/

compare_to()

C++ Interface: compare_to(LMatrix4f self, const LMatrix4f other) compare_to(LMatrix4f self, const LMatrix4f other, float threshold)

/**
  • This flavor of compare_to uses a default threshold value based on the

  • numeric type.

*/

/**
  • Sorts matrices lexicographically, componentwise. Returns a number less

  • than 0 if this matrix sorts before the other one, greater than zero if it

  • sorts after, 0 if they are equivalent (within the indicated tolerance).

*/

componentwiseMult()

C++ Interface: componentwise_mult(const LMatrix4f self, const LMatrix4f other)

/**

*/

componentwise_mult()

C++ Interface: componentwise_mult(const LMatrix4f self, const LMatrix4f other)

/**

*/

convertMat()

C++ Interface: convert_mat(int from, int to)

/**
  • Returns a matrix that transforms from the indicated coordinate system to

  • the indicated coordinate system.

*/

convert_mat()

C++ Interface: convert_mat(int from, int to)

/**
  • Returns a matrix that transforms from the indicated coordinate system to

  • the indicated coordinate system.

*/

fill()

C++ Interface: fill(const LMatrix4f self, float fill_value)

/**
  • Sets each element of the matrix to the indicated fill_value. This is of

  • questionable value, but is sometimes useful when initializing to zero.

*/

getCell()

C++ Interface: get_cell(LMatrix4f self, int row, int col)

/**
  • Returns a particular element of the matrix.

*/

getClassType()

C++ Interface: get_class_type()

getCol()

C++ Interface: get_col(LMatrix4f self, int col)

/**
  • Retrieves the indicated column of the matrix as a 4-component vector.

*/

getCol3()

C++ Interface: get_col3(LMatrix4f self, int col)

/**
  • Retrieves the indicated column of the matrix as a 3-component vector,

  • ignoring the last row.

*/

getCols()
getHash()

C++ Interface: get_hash(LMatrix4f self) get_hash(LMatrix4f self, float threshold)

/**
  • Returns a suitable hash for phash_map.

*/

/**
  • Returns a suitable hash for phash_map.

*/

getNumComponents()

C++ Interface: get_num_components(LMatrix4f self)

/**
  • Returns the number of elements in the matrix, 16.

*/

getRow()

C++ Interface: get_row(LMatrix4f self, int row) get_row(LMatrix4f self, LVecBase4f result_vec, int row)

// these versions inline better

/**
  • Retrieves the indicated row of the matrix as a 4-component vector.

*/

/**
  • Stores the indicated row of the matrix as a 4-component vector.

*/

getRow3()

C++ Interface: get_row3(LMatrix4f self, int row) get_row3(LMatrix4f self, LVecBase3f result_vec, int row)

/**
  • Retrieves the row column of the matrix as a 3-component vector, ignoring

  • the last column.

*/

/**
  • Stores the row column of the matrix as a 3-component vector, ignoring the

  • last column.

*/

getRow3s()
getRows()
getUpper3()

C++ Interface: get_upper_3(LMatrix4f self)

/**
  • Retrieves the upper 3x3 submatrix.

*/

get_cell()

C++ Interface: get_cell(LMatrix4f self, int row, int col)

/**
  • Returns a particular element of the matrix.

*/

get_class_type()

C++ Interface: get_class_type()

get_col()

C++ Interface: get_col(LMatrix4f self, int col)

/**
  • Retrieves the indicated column of the matrix as a 4-component vector.

*/

get_col3()

C++ Interface: get_col3(LMatrix4f self, int col)

/**
  • Retrieves the indicated column of the matrix as a 3-component vector,

  • ignoring the last row.

*/

get_cols()
get_hash()

C++ Interface: get_hash(LMatrix4f self) get_hash(LMatrix4f self, float threshold)

/**
  • Returns a suitable hash for phash_map.

*/

/**
  • Returns a suitable hash for phash_map.

*/

get_num_components()

C++ Interface: get_num_components(LMatrix4f self)

/**
  • Returns the number of elements in the matrix, 16.

*/

get_row()

C++ Interface: get_row(LMatrix4f self, int row) get_row(LMatrix4f self, LVecBase4f result_vec, int row)

// these versions inline better

/**
  • Retrieves the indicated row of the matrix as a 4-component vector.

*/

/**
  • Stores the indicated row of the matrix as a 4-component vector.

*/

get_row3()

C++ Interface: get_row3(LMatrix4f self, int row) get_row3(LMatrix4f self, LVecBase3f result_vec, int row)

/**
  • Retrieves the row column of the matrix as a 3-component vector, ignoring

  • the last column.

*/

/**
  • Stores the row column of the matrix as a 3-component vector, ignoring the

  • last column.

*/

get_row3s()
get_rows()
get_upper_3()

C++ Interface: get_upper_3(LMatrix4f self)

/**
  • Retrieves the upper 3x3 submatrix.

*/

identMat()

C++ Interface: ident_mat()

/**
  • Returns an identity matrix.

  • This function definition must appear first, since some inline functions

  • below take advantage of it.

*/

ident_mat()

C++ Interface: ident_mat()

/**
  • Returns an identity matrix.

  • This function definition must appear first, since some inline functions

  • below take advantage of it.

*/

invertAffineFrom()

C++ Interface: invert_affine_from(const LMatrix4f self, const LMatrix4f other)

// bugbug: we could optimize this for rotationscaletranslation matrices // (transpose upper 3x3 and take negative of translation component)

invertFrom()

C++ Interface: invert_from(const LMatrix4f self, const LMatrix4f other)

/**
  • Computes the inverse of the other matrix, and stores the result in this

  • matrix. This is a fully general operation and makes no assumptions about

  • the type of transform represented by the matrix.

  • The other matrix must be a different object than this matrix. However, if

  • you need to invert a matrix in place, see invert_in_place.

  • The return value is true if the matrix was successfully inverted, false if

  • the was a singularity.

*/

invertInPlace()

C++ Interface: invert_in_place(const LMatrix4f self)

/**
  • Inverts the current matrix. Returns true if the inverse is successful,

  • false if the matrix was singular.

*/

invert_affine_from()

C++ Interface: invert_affine_from(const LMatrix4f self, const LMatrix4f other)

// bugbug: we could optimize this for rotationscaletranslation matrices // (transpose upper 3x3 and take negative of translation component)

invert_from()

C++ Interface: invert_from(const LMatrix4f self, const LMatrix4f other)

/**
  • Computes the inverse of the other matrix, and stores the result in this

  • matrix. This is a fully general operation and makes no assumptions about

  • the type of transform represented by the matrix.

  • The other matrix must be a different object than this matrix. However, if

  • you need to invert a matrix in place, see invert_in_place.

  • The return value is true if the matrix was successfully inverted, false if

  • the was a singularity.

*/

invert_in_place()

C++ Interface: invert_in_place(const LMatrix4f self)

/**
  • Inverts the current matrix. Returns true if the inverse is successful,

  • false if the matrix was singular.

*/

isIdentity()

C++ Interface: is_identity(LMatrix4f self)

/**
  • Returns true if this is (close enough to) the identity matrix, false

  • otherwise.

*/

isNan()

C++ Interface: is_nan(LMatrix4f self)

/**
  • Returns true if any component of the matrix is not-a-number, false

  • otherwise.

*/

is_identity()

C++ Interface: is_identity(LMatrix4f self)

/**
  • Returns true if this is (close enough to) the identity matrix, false

  • otherwise.

*/

is_int = 0
is_nan()

C++ Interface: is_nan(LMatrix4f self)

/**
  • Returns true if any component of the matrix is not-a-number, false

  • otherwise.

*/

multiply()

C++ Interface: multiply(const LMatrix4f self, const LMatrix4f other1, const LMatrix4f other2)

// this = other1 * other2

// this = other1 * other2

num_components = 16
onesMat()

C++ Interface: ones_mat()

/**
  • Returns an matrix filled with ones.

*/

ones_mat()

C++ Interface: ones_mat()

/**
  • Returns an matrix filled with ones.

*/

output()

C++ Interface: output(LMatrix4f self, ostream out)

/**

*/

readDatagram()

C++ Interface: read_datagram(const LMatrix4f self, DatagramIterator source)

/**
  • Reads the matrix from the Datagram using get_stdfloat().

*/

readDatagramFixed()

C++ Interface: read_datagram_fixed(const LMatrix4f self, DatagramIterator scan)

/**
  • Reads the matrix from the Datagram using get_float32() or get_float64().

  • See write_datagram_fixed().

*/

read_datagram()

C++ Interface: read_datagram(const LMatrix4f self, DatagramIterator source)

/**
  • Reads the matrix from the Datagram using get_stdfloat().

*/

read_datagram_fixed()

C++ Interface: read_datagram_fixed(const LMatrix4f self, DatagramIterator scan)

/**
  • Reads the matrix from the Datagram using get_float32() or get_float64().

  • See write_datagram_fixed().

*/

rotateMat()

C++ Interface: rotate_mat(float angle, const LVecBase3f axis, int cs)

/**
  • Returns a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector.

*/

rotateMatNormaxis()

C++ Interface: rotate_mat_normaxis(float angle, const LVecBase3f axis, int cs)

/**
  • Returns a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector. Assumes axis has been

  • prenormalized.

*/

rotate_mat()

C++ Interface: rotate_mat(float angle, const LVecBase3f axis, int cs)

/**
  • Returns a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector.

*/

rotate_mat_normaxis()

C++ Interface: rotate_mat_normaxis(float angle, const LVecBase3f axis, int cs)

/**
  • Returns a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector. Assumes axis has been

  • prenormalized.

*/

rows
scaleMat()

C++ Interface: scale_mat(const LVecBase3f scale) scale_mat(float scale) scale_mat(float sx, float sy, float sz)

/**
  • Returns a matrix that applies the indicated scale in each of the three

  • axes.

*/

/**
  • Returns a matrix that applies the indicated scale in each of the three

  • axes.

*/

/**
  • Returns a matrix that applies the indicated uniform scale.

*/

scaleShearMat()

C++ Interface: scale_shear_mat(const LVecBase3f scale, const LVecBase3f shear) scale_shear_mat(const LVecBase3f scale, const LVecBase3f shear, int cs) scale_shear_mat(float sx, float sy, float sz, float shxy, float shxz, float shyz, int cs)

/**
  • Returns a matrix that applies the indicated scale and shear.

*/

/**
  • Returns a matrix that applies the indicated scale and shear.

*/

scale_mat()

C++ Interface: scale_mat(const LVecBase3f scale) scale_mat(float scale) scale_mat(float sx, float sy, float sz)

/**
  • Returns a matrix that applies the indicated scale in each of the three

  • axes.

*/

/**
  • Returns a matrix that applies the indicated scale in each of the three

  • axes.

*/

/**
  • Returns a matrix that applies the indicated uniform scale.

*/

scale_shear_mat()

C++ Interface: scale_shear_mat(const LVecBase3f scale, const LVecBase3f shear) scale_shear_mat(const LVecBase3f scale, const LVecBase3f shear, int cs) scale_shear_mat(float sx, float sy, float sz, float shxy, float shxz, float shyz, int cs)

/**
  • Returns a matrix that applies the indicated scale and shear.

*/

/**
  • Returns a matrix that applies the indicated scale and shear.

*/

set()

C++ Interface: set(const LMatrix4f self, float e00, float e01, float e02, float e03, float e10, float e11, float e12, float e13, float e20, float e21, float e22, float e23, float e30, float e31, float e32, float e33)

/**

*/

setCell()

C++ Interface: set_cell(const LMatrix4f self, int row, int col, float value)

/**
  • Changes a particular element of the matrix.

*/

setCol()

C++ Interface: set_col(const LMatrix4f self, int col, const LVecBase4f v) set_col(const LMatrix4f self, int col, const LVecBase3f v)

/**
  • Replaces the indicated column of the matrix.

*/

/**
  • Replaces the indicated column of the matrix with the indicated 3-component

  • vector, ignoring the last row.

*/

setRotateMat()

C++ Interface: set_rotate_mat(const LMatrix4f self, float angle, const LVecBase3f axis, int cs)

/**
  • Sets mat to a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector.

*/

setRotateMatNormaxis()

C++ Interface: set_rotate_mat_normaxis(const LMatrix4f self, float angle, const LVecBase3f axis, int cs)

/**
  • Fills mat with a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector. Assumes axis has been

  • prenormalized.

*/

setRow()

C++ Interface: set_row(const LMatrix4f self, int row, const LVecBase4f v) set_row(const LMatrix4f self, int row, const LVecBase3f v)

/**
  • Replaces the indicated row of the matrix.

*/

/**
  • Replaces the indicated row of the matrix with the indicated 3-component

  • vector, ignoring the last column.

*/

setScaleMat()

C++ Interface: set_scale_mat(const LMatrix4f self, const LVecBase3f scale)

/**
  • Fills mat with a matrix that applies the indicated scale in each of the

  • three axes.

*/

setScaleShearMat()

C++ Interface: set_scale_shear_mat(const LMatrix4f self, const LVecBase3f scale, const LVecBase3f shear, int cs)

/**
  • Fills mat with a matrix that applies the indicated scale and shear.

*/

setShearMat()

C++ Interface: set_shear_mat(const LMatrix4f self, const LVecBase3f shear, int cs)

/**
  • Fills mat with a matrix that applies the indicated shear in each of the

  • three planes.

*/

setTranslateMat()

C++ Interface: set_translate_mat(const LMatrix4f self, const LVecBase3f trans)

/**
  • Fills mat with a matrix that applies the indicated translation.

*/

setUpper3()

C++ Interface: set_upper_3(const LMatrix4f self, const LMatrix3f upper3)

// Get and set the upper 3x3 rotation matrix.

/**
  • Sets the upper 3x3 submatrix.

*/

set_cell()

C++ Interface: set_cell(const LMatrix4f self, int row, int col, float value)

/**
  • Changes a particular element of the matrix.

*/

set_col()

C++ Interface: set_col(const LMatrix4f self, int col, const LVecBase4f v) set_col(const LMatrix4f self, int col, const LVecBase3f v)

/**
  • Replaces the indicated column of the matrix.

*/

/**
  • Replaces the indicated column of the matrix with the indicated 3-component

  • vector, ignoring the last row.

*/

set_rotate_mat()

C++ Interface: set_rotate_mat(const LMatrix4f self, float angle, const LVecBase3f axis, int cs)

/**
  • Sets mat to a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector.

*/

set_rotate_mat_normaxis()

C++ Interface: set_rotate_mat_normaxis(const LMatrix4f self, float angle, const LVecBase3f axis, int cs)

/**
  • Fills mat with a matrix that rotates by the given angle in degrees

  • counterclockwise about the indicated vector. Assumes axis has been

  • prenormalized.

*/

set_row()

C++ Interface: set_row(const LMatrix4f self, int row, const LVecBase4f v) set_row(const LMatrix4f self, int row, const LVecBase3f v)

/**
  • Replaces the indicated row of the matrix.

*/

/**
  • Replaces the indicated row of the matrix with the indicated 3-component

  • vector, ignoring the last column.

*/

set_scale_mat()

C++ Interface: set_scale_mat(const LMatrix4f self, const LVecBase3f scale)

/**
  • Fills mat with a matrix that applies the indicated scale in each of the

  • three axes.

*/

set_scale_shear_mat()

C++ Interface: set_scale_shear_mat(const LMatrix4f self, const LVecBase3f scale, const LVecBase3f shear, int cs)

/**
  • Fills mat with a matrix that applies the indicated scale and shear.

*/

set_shear_mat()

C++ Interface: set_shear_mat(const LMatrix4f self, const LVecBase3f shear, int cs)

/**
  • Fills mat with a matrix that applies the indicated shear in each of the

  • three planes.

*/

set_translate_mat()

C++ Interface: set_translate_mat(const LMatrix4f self, const LVecBase3f trans)

/**
  • Fills mat with a matrix that applies the indicated translation.

*/

set_upper_3()

C++ Interface: set_upper_3(const LMatrix4f self, const LMatrix3f upper3)

// Get and set the upper 3x3 rotation matrix.

/**
  • Sets the upper 3x3 submatrix.

*/

shearMat()

C++ Interface: shear_mat(const LVecBase3f shear) shear_mat(const LVecBase3f shear, int cs) shear_mat(float shxy, float shxz, float shyz, int cs)

/**
  • Returns a matrix that applies the indicated shear in each of the three

  • planes.

*/

/**
  • Returns a matrix that applies the indicated shear in each of the three

  • planes.

*/

shear_mat()

C++ Interface: shear_mat(const LVecBase3f shear) shear_mat(const LVecBase3f shear, int cs) shear_mat(float shxy, float shxz, float shyz, int cs)

/**
  • Returns a matrix that applies the indicated shear in each of the three

  • planes.

*/

/**
  • Returns a matrix that applies the indicated shear in each of the three

  • planes.

*/

translateMat()

C++ Interface: translate_mat(const LVecBase3f trans) translate_mat(float tx, float ty, float tz)

/**
  • Returns a matrix that applies the indicated translation.

*/

/**
  • Returns a matrix that applies the indicated translation.

*/

translate_mat()

C++ Interface: translate_mat(const LVecBase3f trans) translate_mat(float tx, float ty, float tz)

/**
  • Returns a matrix that applies the indicated translation.

*/

/**
  • Returns a matrix that applies the indicated translation.

*/

transposeFrom()

C++ Interface: transpose_from(const LMatrix4f self, const LMatrix4f other)

/**

*/

transposeInPlace()

C++ Interface: transpose_in_place(const LMatrix4f self)

/**

*/

transpose_from()

C++ Interface: transpose_from(const LMatrix4f self, const LMatrix4f other)

/**

*/

transpose_in_place()

C++ Interface: transpose_in_place(const LMatrix4f self)

/**

*/

write()

C++ Interface: write(LMatrix4f self, ostream out, int indent_level)

/**

*/

writeDatagram()

C++ Interface: write_datagram(LMatrix4f self, Datagram destination)

/**
  • Writes the matrix to the Datagram using add_stdfloat(). This is

  • appropriate when you want to write the matrix using the standard width

  • setting, especially when you are writing a bam file.

*/

writeDatagramFixed()

C++ Interface: write_datagram_fixed(LMatrix4f self, Datagram destination)

/**
  • Writes the matrix to the Datagram using add_float32() or add_float64(),

  • depending on the type of floats in the matrix, regardless of the setting of

  • Datagram::set_stdfloat_double(). This is appropriate when you want to

  • write a fixed-width value to the datagram, especially when you are not

  • writing a bam file.

*/

write_datagram()

C++ Interface: write_datagram(LMatrix4f self, Datagram destination)

/**
  • Writes the matrix to the Datagram using add_stdfloat(). This is

  • appropriate when you want to write the matrix using the standard width

  • setting, especially when you are writing a bam file.

*/

write_datagram_fixed()

C++ Interface: write_datagram_fixed(LMatrix4f self, Datagram destination)

/**
  • Writes the matrix to the Datagram using add_float32() or add_float64(),

  • depending on the type of floats in the matrix, regardless of the setting of

  • Datagram::set_stdfloat_double(). This is appropriate when you want to

  • write a fixed-width value to the datagram, especially when you are not

  • writing a bam file.

*/

xform()

C++ Interface: xform(LMatrix4f self, const LVecBase4f v)

/**
  • 4-component vector or point times matrix. This is a fully general

  • operation.

*/

xformInPlace()

C++ Interface: xform_in_place(LMatrix4f self, LVecBase4f v)

/**
  • 4-component vector or point times matrix. This is a fully general

  • operation.

*/

xformPoint()

C++ Interface: xform_point(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation component)

  • and returns the result. This assumes the matrix is an affine transform.

*/

xformPointGeneral()

C++ Interface: xform_point_general(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation component)

  • and returns the result, as a fully general operation.

*/

xformPointGeneralInPlace()

C++ Interface: xform_point_general_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation

  • component), as a fully general operation.

*/

xformPointInPlace()

C++ Interface: xform_point_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation

  • component). This assumes the matrix is an affine transform.

*/

xformVec()

C++ Interface: xform_vec(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component)

  • and returns the result. This assumes the matrix is an orthonormal

  • transform.

*/

xformVecGeneral()

C++ Interface: xform_vec_general(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component)

  • and returns the result, as a fully general operation.

*/

xformVecGeneralInPlace()

C++ Interface: xform_vec_general_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component),

  • as a fully general operation.

*/

xformVecInPlace()

C++ Interface: xform_vec_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component).

  • This assumes the matrix is an orthonormal transform.

*/

xform_in_place()

C++ Interface: xform_in_place(LMatrix4f self, LVecBase4f v)

/**
  • 4-component vector or point times matrix. This is a fully general

  • operation.

*/

xform_point()

C++ Interface: xform_point(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation component)

  • and returns the result. This assumes the matrix is an affine transform.

*/

xform_point_general()

C++ Interface: xform_point_general(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation component)

  • and returns the result, as a fully general operation.

*/

xform_point_general_in_place()

C++ Interface: xform_point_general_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation

  • component), as a fully general operation.

*/

xform_point_in_place()

C++ Interface: xform_point_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component point (including translation

  • component). This assumes the matrix is an affine transform.

*/

xform_vec()

C++ Interface: xform_vec(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component)

  • and returns the result. This assumes the matrix is an orthonormal

  • transform.

*/

xform_vec_general()

C++ Interface: xform_vec_general(LMatrix4f self, const LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component)

  • and returns the result, as a fully general operation.

*/

xform_vec_general_in_place()

C++ Interface: xform_vec_general_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component),

  • as a fully general operation.

*/

xform_vec_in_place()

C++ Interface: xform_vec_in_place(LMatrix4f self, LVecBase3f v)

/**
  • The matrix transforms a 3-component vector (without translation component).

  • This assumes the matrix is an orthonormal transform.

*/

yToZUpMat()

C++ Interface: y_to_z_up_mat()

/**
  • Returns a matrix that transforms from the Y-up coordinate system to the

  • Z-up coordinate system.

*/

y_to_z_up_mat()

C++ Interface: y_to_z_up_mat()

/**
  • Returns a matrix that transforms from the Y-up coordinate system to the

  • Z-up coordinate system.

*/

zToYUpMat()

C++ Interface: z_to_y_up_mat()

/**
  • Returns a matrix that transforms from the Y-up coordinate system to the

  • Z-up coordinate system.

*/

z_to_y_up_mat()

C++ Interface: z_to_y_up_mat()

/**
  • Returns a matrix that transforms from the Y-up coordinate system to the

  • Z-up coordinate system.

*/

zerosMat()

C++ Interface: zeros_mat()

/**
  • Returns an matrix filled with zeros.

*/

zeros_mat()

C++ Interface: zeros_mat()

/**
  • Returns an matrix filled with zeros.

*/