mgear.core.transform

Functions to work with matrix and transformations

Functions

convert2TransformMatrix(tm)

Convert a transformation Matrix

getChainTransform(positions, normal[, ...])

Get a tranformation list from a positions list and normal.

getChainTransform2(positions, normal[, ...])

Get a tranformation list from a positions list and normal.

getClosestPolygonFromTransform(geo, loc)

Get closest polygon from transform

getDistance2(obj0, obj1)

Get the distance between 2 objects.

getFilteredTransform(m[, translation, ...])

Retrieve a transformation filtered.

getInterpolateTransformMatrix(t1, t2[, blend])

Interpolate 2 matrix.

getOffsetPosition(node[, offset])

Get an offset position from dagNode

getPositionFromMatrix(in_m)

Get the position values from matrix

getRotationFromAxis(in_a, in_b[, axis, negate])

Get the matrix rotation from a given axis.

getSymmetricalTransform(t[, axis, fNegScale])

Get the symmetrical tranformation

getTransform(node)

Return the transformation matrix of the dagNode in worldSpace.

getTransformFromPos(pos)

Create a transformation Matrix from a given position.

getTransformLookingAt(pos, lookat, normal[, ...])

Return a transformation mstrix using vector positions.

getTranslation(node)

Return the position of the dagNode in worldSpace.

get_closes_transform(target_transform, ...)

Summary

get_orientation_from_polygon(face)

Summary

get_raycast_translation_from_mouse_click(...)

get the raycasted translation of the mouse position

interpolate_rotation(obj, targets, blends)

interpolate_scale(obj, targets, blends)

matchWorldTransform(source, target)

Match 2 dagNode transformations in world space.

quaternionDotProd(q1, q2)

Get the dot product of 2 quaternion.

quaternionSlerp(q1, q2, blend)

Get an interpolate quaternion based in slerp function.

resetTransform(node[, t, r, s])

Reset the scale, rotation and translation for a given dagNode.

setMatrixPosition(in_m, pos)

Set the position for a given matrix

setMatrixRotation(m, rot)

Set the rotation for a given matrix

setMatrixScale(m[, scl])

Set the scale for a given matrix