LibTrace
Programming - The Object class
The "Object
" class is the base class for all the primitives and object modifiers.
It is derived from the "List
" class so linked lists of objects can be made.
The object's "texture
" is stored in the "*texture
" variable.
Vector Object::intersection(Line line) const
virtual bool Object::inside(void) const
Surface Object::get_surface(void)
Vector Object::intersection(Line line) const
This function finds the first point where "line
" intersects the object.
Mainly used internally.
virtual bool Object::inside(void) const
This functions finds out if the line passed to the most recent call to "intersection()
"
started from inside the object or not.
Mainly used internally.
Surface Object::get_surface(void)
This function returns the exact surface properties of the point at the last
"intersection()
".
Mainly used internally.