Plane.init_

Initializes the given #graphene_plane_t using the given normal vector and constant values.

Parameters

normal graphene.vec3.Vec3

a unit length normal vector defining the plane pointing towards the origin; if unset, we use the X axis by default

constant float

the distance from the origin to the plane along the normal vector; the sign determines the half-space occupied by the plane

Return Value

Type: graphene.plane.Plane

the initialized plane