< Previous | | Manuals Home | Boris FX | Next >
Standalone functions
See also the SyLevel.Conform routine.
Prod(a, b) Returns the product of a (SyTrans or list-of-lists) and b (SyTrans, list-of-lists, or vector list) as a list-of-lists.
MapDir(a, b) Returns the product of a (SyTrans or list-of-lists) and b (vector list only), ignoring the translational portion of a. This is useful when b is a direction, instead of a position.
Inv(a) Returns the inverse of a (SyTrans or list-of-lists). The transform a must be orthonormal, with no scaling or skew.
Prnt(a) Prints out matrix a neatly
Iden() Returns an identity matrix as a list-of-lists.
XRot(ang) Creates a list-of-lists transform that corresponds to a rotation around the positive X axis using the right-hand- rule. The angle (ang) is in degrees.
YRot(ang) Create a list-of-lists transform that corresponds to a rotation around the positive Y axis axis using the right- hand-rule. The angle (ang) is in degrees.
ZRot(ang) Create a list-of-lists transform that corresponds to a rotation around the positive Z axis axis using the right- hand-rule. The angle (ang) is in degrees.
Cross(a,b) Returns the cross product of vectors a and b.
Norm(a) Returns a normalized version of vector a
FOV2FLen(fov, pwidth) Returns the focal length for a given angle of view (fov, in
degrees) for a given plate width. The focal length is in the same units as the plate width.
FLen2FOV(flen, pwidth) Returns the angle of view (FOV) corresponding to a given
©2023 Boris FX, Inc. — UNOFFICIAL — Converted from original PDF.