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

Public Types | |
| typedef const | float (&ConstArrayReference)[2] |
| typedef float(* | ArrayPointer )[2] |
| typedef const float(* | ConstArrayPointer )[2] |
Public Methods | |
| typedef | float (&ArrayReference)[2] |
| SFVec2f () throw () | |
| Construct a SFVec2f with the default values, (0, 0). | |
| SFVec2f (ConstArrayReference vec) throw () | |
| Construct a SFVec2f. | |
| SFVec2f (float x, float y) throw () | |
| Construct a SFVec2f. | |
| virtual | ~SFVec2f () 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. | |
| ConstArrayReference | get () const throw () |
| Get the value of this vector. | |
| void | set (ConstArrayReference vec) throw () |
| Set the value of this vector. | |
| const SFVec2f | add (const SFVec2f &vec) const throw () |
| Add two vectors. | |
| const SFVec2f | divide (float number) const throw () |
| Divide this vector by a scalar. | |
| double | dot (const SFVec2f &vec) const throw () |
| Dot product. | |
| double | length () const throw () |
| Geometric length. | |
| const SFVec2f | multiply (float number) const throw () |
| Multiply by a scalar. | |
| const SFVec2f | negate () const throw () |
| Negate. | |
| const SFVec2f | normalize () const throw () |
| Normalize. | |
| const SFVec2f | subtract (const SFVec2f &vec) const throw () |
| Take the difference of two vectors. | |
| 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 [2] |
|
|
Construct a SFVec2f with the default values, (0, 0).
|
|
|
Construct a SFVec2f.
|
|
||||||||||||
|
Construct a SFVec2f.
|
|
|
Destructor.
|
|
|
Add two vectors.
|
|
|
Virtual assignment.
Implements FieldValue. |
|
|
Virtual copy constructor.
Implements FieldValue. |
|
|
Divide this vector by a scalar.
|
|
|
Dot product.
|
|
|
Get the value of this vector.
|
|
|
Get the x-component.
|
|
|
Get the y-component.
|
|
|
Geometric length.
|
|
|
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 value of this vector.
|
|
|
Set the x-component.
|
|
|
Set the y-component.
|
|
|
Take the difference of two vectors.
|
|
|
Get the FieldValue::Type associated with this class.
Implements FieldValue. |