Box.initFromVectors

graphene.box.Box initFromVectors(graphene.vec3.Vec3[] vectors)

Initializes the given #graphene_box_t with the given array of vertices.

If n_vectors is 0, the returned box is initialized with [graphene.box.Box.empty].

Parameters

vectorsan array of #graphene_vec3_t

Returns

the initialized #graphene_box_t