Function: matx4

Syntax

matx4 (<point>,<matrix>)

Type

point

Returns

The result of a 3-D point transformed by a 4 x 4 matrix. The three-element point is given a fourth element with value one for multiplication purposes, and is then discarded after the operation.

Parameters

Examples

Translates a point and rotates it through 45 degrees.

numeric mat[] = <0.707107, 0.707107, 0, 0, \ 
    -0.707107, 0.707107, 0, 0, \ 
    0, 0, 1, 0, \ 
    50, 50, 0, 1>
point p1 = matx4(p2,mat)

See Also

Functions:

matx2 (numeric), matx3 (numeric)