Package: graphene

Function graphene:plane-transform

Lambda List

graphene:plane-transform (plane matrix normal result)

Arguments

plane -- a graphene:plane-t instance
matrix -- a graphene:matrix-t instance
normal -- a graphene:matrix-t instance
result -- a graphene:plane-t instance

Return Value

The transformed graphene:plane-t instance.

Details

Transforms a plane using the given matrix and normal matrix. If the normal matrix is nil, a transformation matrix for the plane normal will be computed from matrix. If you are transforming multiple planes using the same matrix it is recommended to compute the normal matrix beforehand to avoid incurring in the cost of recomputing it every time.
 

See also

#2024-12-29