init

fun init(normal: Vec3? = null, constant: Float): Plane

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

Return

the initialized plane

Since

1.2

Parameters

normal

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

constant

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