In file ./include/vob/Vec23.hxx:
Simple vectors for 2D / 3D graphics
Documentation
Simple vectors for 2D / 3D graphics
-
template<class T> class Vector
- A 2D vector
-
template<class T> Vector<T> operator*(const double &s, const Vector<T> &v)
- Multiply vector by scalar
-
template<class T>inline ostream& operator<<(ostream &o, const Vector<T> &p)
- Print out a vector
-
template<class T> class Vector3
- A 3D vector
-
template<class T> Vector3<T> operator*(const double &s, const Vector3<T> &v)
- Multiply vector by scalar
-
template<class T>inline ostream& operator<<(ostream &o, const Vector3<T> &p)
- Output a 3-vector
-
template<class T> class Rectangle
- A rectangle
-
template<class T>inline ostream& operator<<(ostream &o, const Rectangle<T> &r)
- Output a rectangle
-
typedef Vector<float> Pt
- Shorthand
-
typedef Vector3<float> ZPt
- Shorthand
-
typedef Vector<float> Vec
- Shorthand
-
typedef Vector3<float> ZVec
- Shorthand
-
typedef Vector<double> PtD
- Shorthand
-
typedef Vector3<double> ZPtD
- Shorthand
-
typedef Vector<double> VecD
- Shorthand
-
typedef Vector3<double> ZVecD
- Shorthand
-
template<class X>inline X lerp(X a, X b, double fract)
- Linear interpolation.
-
template<class T> struct HPoint2
- A homogeneous 2D point.
-
template<class T> struct HLine2
- A homogeneous 2D line
-
inline Vec dirVec(float angle)
- Give the direction vector for a given angle: (sin angle, cos angle)
Alphabetic index Hierarchy of classes
This page was generated with the help of DOC++.