MTXReflect

Syntax

#include <revolution/mtx.h>

void MTXReflect ( Mtx m, VecPtr p, VecPtr n );

Arguments

m   Resulting rotation matrix. m may be an Mtx or an MtxPtr.
p Pointer to the point Vec, the point on the plane. p may also be a pointer to Point3d.
n Pointer to the normal Vec, a vector normal to the plane.
n may also be a pointer to a Point3d.

Return Values

None.

Description

Reflects a rotation matrix with respect to a plane. The plane is described using a point p on the plane, and a normal n. The matrix generated can be concatenated with the view matrix, for example, to create the view as seen by a planar mirror.

See Also

Mtx, MtxPtr, Point3d, Point3dPtr, Vec, VecPtr, MTXMultVecSR, MTXMultVecArray, MTXMultVecArraySR

Revision History

2006/03/01 Initial version.


CONFIDENTIAL