In file ./include/vob/Vec23.hxx:

template<class T> class Vec23::Vector3

A 3D vector

Documentation

A 3D vector

Inheritance:

Vector3


Public Methods

[more] Vector3 ()
Null
[more] Vector3 (T x, T y, T z)
From components
[more] Vector3 (const Vector<T> &v, float z = 0)
From a 2D vector and an optional Z-component
[more]Vector3 finitized () const
Making all components finite
[more]Vector3 operator* (const double &s) const
Multiplication by scalar
[more]template<class U> const Vector3& operator*= (const U &s)
Multiplication by scalar
[more]template<class U> const Vector3& operator/= (const U &s)
Multiplication by reciprocal of a scalar
[more]template<class U> Vector3 operator/ (const U &s)
Multiplication by reciprocal of a scalar
[more]Vector3 normalized () const
Return the normalized version of this vector
[more]Vector3<T> operator- () const
Negation
[more]Vector3 operator+ (const Vector3<T>&v) const
Addition
[more]Vector3 operator* (const Vector3<T>&v) const
Member-wise multiplication of vectors!
[more]const Vector3& operator+= (const Vector3<T>&v)
Vector addition
[more]const Vector3& operator-= (const Vector3<T>&v)
Vector subtraction
[more]Vector3 operator- (const Vector3<T>&v) const
Vector subtraction
[more]Vector3 cw90 () const
Return a vector like this, but rotated 90 degrees clockwise IN X AND Y
[more]double dot (const Vector3<T> &v) const
Dot product with another 3-vector
[more]double dot2 (const Vector3<T> &v) const
Dot product of x and y components only
[more]double length () const
Length of this vector
[more]double xylength () const
Length of this vector in xy plane
[more]Vector3 crossp (const Vector3<T> &v) const
Cross-product with another vector

o Vector3()
Null

o Vector3(T x, T y, T z)
From components

o Vector3(const Vector<T> &v, float z = 0)
From a 2D vector and an optional Z-component

oVector3 finitized() const
Making all components finite

oVector3 operator*(const double &s) const
Multiplication by scalar

otemplate<class U> const Vector3& operator*=(const U &s)
Multiplication by scalar

otemplate<class U> const Vector3& operator/=(const U &s)
Multiplication by reciprocal of a scalar

otemplate<class U> Vector3 operator/(const U &s)
Multiplication by reciprocal of a scalar

oVector3 normalized() const
Return the normalized version of this vector

oVector3<T> operator-() const
Negation

oVector3 operator+(const Vector3<T>&v) const
Addition

oVector3 operator*(const Vector3<T>&v) const
Member-wise multiplication of vectors!

oconst Vector3& operator+=(const Vector3<T>&v)
Vector addition

oconst Vector3& operator-=(const Vector3<T>&v)
Vector subtraction

oVector3 operator-(const Vector3<T>&v) const
Vector subtraction

oVector3 cw90() const
Return a vector like this, but rotated 90 degrees clockwise IN X AND Y

odouble dot(const Vector3<T> &v) const
Dot product with another 3-vector

odouble dot2(const Vector3<T> &v) const
Dot product of x and y components only

odouble length() const
Length of this vector

odouble xylength() const
Length of this vector in xy plane

oVector3 crossp(const Vector3<T> &v) const
Cross-product with another vector


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.