children is the list of pointers to children k_hierarchies.
childrens_number is the number of children.
closest_object is the pointer to the closest object in k_hierarchy relative to ray.
primitive is the pointer to primitive geometry (sphere, block, cone, ...) if an instance is a leaf node in k_hierarchy tree.
bounding_volume? returns bounding_volume instance variable.
children=argument sets the value of the children instance variable to the argument that can be either a list of object names or a list of object pointers. Sets also the children_number instance variable.
children? returns the list of childrens.
estimate! finds intersection ray-bounding_volume of the k_hierarchy by forwarding the message to the instance's bounding_volume object.
estimation? forwards the message to instance's bounding_volume.
intersect! finds the parameter of ray-object intersection and the closest object in k_hierarchy.
near_far! calculates near_far for bounding_volumes in hierarchy.
near_far? returns near_far of an instance.
primitive=argument sets the primitive of an instance.
primitive? returns the primitive of an instance.
transform_bounding_volume! this method exists for compatibility with other geometry primitives. It does nothing.
row_product! forwards the message to the primitive of an instance if it is a leaf node, otherwise forwards it to the children.