| Home | Download | Screen shots | Discussion | Documentation | Links |
|---|
Inheritance diagram for SFVec3f:

Public Types | |
| typedef const | float (&ConstArrayReference)[3] |
| typedef float(* | ArrayPointer )[3] |
| typedef const float(* | ConstArrayPointer )[3] |
Public Methods | |
| typedef | float (&ArrayReference)[3] |
| SFVec3f () throw () | |
| Construct a SFVec3f with the default value, (0, 0, 0). | |
| SFVec3f (ConstArrayReference vec) throw () | |
| Construct a SFVec3f. | |
| SFVec3f (float x, float y, float z) throw () | |
| Construct a SFVec3f. | |
| virtual | ~SFVec3f () throw () |
| Destructor. | |
| float | operator[] (size_t index) const throw () |
| Array element dereference operator (const version). | |
| float & | operator[] (size_t index) throw () |
| Array element dereference operator (non-const version). | |
| float | getX () const throw () |
| Get the x-component. | |
| void | setX (float) throw () |
| Set the x-component. | |
| float | getY () const throw () |
| Get the y-component. | |
| void | setY (float) throw () |
| Set the y-component. | |
| float | getZ () const throw () |
| Get the z-component. | |
| void | setZ (float) throw () |
| Set the z-component. | |
| ConstArrayReference | get () const throw () |
| Get the vector value. | |
| void | set (ConstArrayReference vec) throw () |
| Set the vector value. | |
| const SFVec3f | add (const SFVec3f &vec) const throw () |
| Add this vector and vec component-wise. | |
| const SFVec3f | cross (const SFVec3f &vec) const throw () |
| Get the cross product of this vector and vec. | |
| const SFVec3f | divide (float number) const throw () |
| Get the result of dividing this vector by number. | |
| double | dot (const SFVec3f &vec) const throw () |
| Get the dot product of this vector and vec. | |
| double | length () const throw () |
| Get the length of this vector. | |
| const SFVec3f | multiply (float number) const throw () |
| Multiply by a scalar. | |
| const SFVec3f | negate () const throw () |
| Negate. | |
| const SFVec3f | normalize () const throw () |
| Normalize. | |
| const SFVec3f | subtract (const SFVec3f &vec) const throw () |
| Subtract. | |
| virtual std::auto_ptr< FieldValue > | clone () const throw (std::bad_alloc) |
| Virtual copy constructor. | |
| virtual FieldValue & | assign (const FieldValue &value) throw (std::bad_cast) |
| Virtual assignment. | |
| virtual Type | type () const throw () |
| Get the FieldValue::Type associated with this class. | |
Private Methods | |
| virtual void | print (std::ostream &) const |
| Print to an output stream. | |
Private Attributes | |
| float | value [3] |
|
|
Construct a SFVec3f with the default value, (0, 0, 0).
|
|
|
Construct a SFVec3f.
|
|
||||||||||||||||
|
Construct a SFVec3f.
|
|
|
Destructor.
|
|
|
Add this vector and vec component-wise.
|
|
|
Virtual assignment.
Implements FieldValue. |
|
|
Virtual copy constructor.
Implements FieldValue. |
|
|
Get the cross product of this vector and vec.
|
|
|
Get the result of dividing this vector by number.
|
|
|
Get the dot product of this vector and vec.
|
|
|
Get the vector value.
|
|
|
Get the x-component.
|
|
|
Get the y-component.
|
|
|
Get the z-component.
|
|
|
Get the length of this vector.
|
|
|
Multiply by a scalar.
|
|
|
Negate.
|
|
|
Normalize.
|
|
|
Array element dereference operator (non-const version).
|
|
|
Array element dereference operator (const version).
|
|
|
Print to an output stream.
Implements FieldValue. |
|
|
Set the vector value.
|
|
|
Set the x-component.
|
|
|
Set the y-component.
|
|
|
Set the z-component.
|
|
|
Subtract.
|
|
|
Get the FieldValue::Type associated with this class.
Implements FieldValue. |