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 with 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 float with 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

2023-12-7