|
float_to_int(value)
Convert float to integer, rounding and handling nan and inf
gracefully. |
source code
|
|
|
getBoundingBox(veclist)
Calculate bounding box (pair of vectors with minimum and maximum
coordinates). |
source code
|
|
|
getCenterRadius(veclist)
Calculate center and radius of given list of vectors. |
source code
|
|
|
|
|
|
|
|
|
vecDotProduct(vec1,
vec2)
The vector dot product (any dimension). |
source code
|
|
|
vecDistance(vec1,
vec2)
Return distance between two vectors (any dimension). |
source code
|
|
|
vecNormal(vec1,
vec2,
vec3)
Returns a vector that is orthogonal on C{triangle}. |
source code
|
|
|
vecDistanceAxis(axis,
vec)
Return distance between the axis spanned by axis[0] and axis[1] and the
vector v, in 3 dimensions. |
source code
|
|
|
vecDistanceTriangle(triangle,
vert)
Return (signed) distance between the plane spanned by triangle[0],
triangle[1], and triange[2], and the vector v, in 3 dimensions. |
source code
|
|
|
vecNorm(vec)
Norm of a vector (any dimension). |
source code
|
|
|
vecNormalized(vec)
Normalized version of a vector (any dimension). |
source code
|
|
|
vecCrossProduct(vec1,
vec2)
The vector cross product (in 3d). |
source code
|
|
|
matTransposed(mat)
Return the transposed of a nxn matrix. |
source code
|
|
|
matscalarMul(mat,
scalar)
Return matrix * scalar. |
source code
|
|
|
matvecMul(mat,
vec)
Return matrix * vector. |
source code
|
|
|
|
|
|
|
|
|
|
|
|