Package: graphene

Function graphene:plane-init

Lambda List

graphene:plane-init (plane normal constant)

Arguments

plane -- a graphene:plane-t instance to initialize
normal -- a graphene:vec3-t instance for a unit length normal vector defining the plane pointing towards the origin, if unset, the X axis is used by default
constant -- a number coerced to a single float for the distance from the origin to the plane along the normal vector, the sign determines the half-space occupied by the plane

Return Value

The initialized graphene:plane-t instance.

Details

Initializes the given plane using the given normal vector and constant value.
 

See also

2025-4-7