Main Page
Namespaces
Classes
Files
Alphabetical List
Class List
Class Hierarchy
Class Members
Vector2T< T > Class Template Reference
#include <
Vector2.hpp
>
Collaboration diagram for Vector2T< T >:
[
legend
]
List of all members.
Public Member Functions
Vector2T
()
Vector2T
(float cx, float cy)
Vector2T
(double cx, double cy)
template<class S>
Vector2T
(const
Vector2T
< S > &v)
template<class S>
Vector2T
&
operator=
(const
Vector2T
< S > &v)
Vector2T
&
clear
(void)
Vector2T
&
make
(double cx, double cy)
Vector2T
&
make
(double xy)
bool
operator==
(const
Vector2T
&src) const
bool
operator!=
(const
Vector2T
&src) const
Vector2T
&
operator+=
(const
Vector2T
&v)
Vector2T
&
operator-=
(const
Vector2T
&v)
Vector2T
&
operator *=
(double s)
Vector2T
&
operator/=
(double s)
bool
isOne
(void) const
bool
isZero
(void) const
bool
isValid
(void) const
double
length
(void) const
double
lengthSqr
(void) const
Vector2T
&
negate
(void)
Vector2T
&
normalize
(double len=1.0)
Vector2T
&
scale
(const
Vector2T
&v)
Vector2T
&
descale
(const
Vector2T
&v)
Vector2T
&
rotate
(double s, double c)
Vector2T
&
rotate
(double angle)
double
angle
(void) const
Vector2T
&
clampUnit
(void)
const
T
&
operator[]
(int i) const
T
&
operator[]
(int i)
Vector2T
()
Vector2T
(float cx, float cy)
Vector2T
(double cx, double cy)
template<class S>
Vector2T
(const
Vector2T
< S > &v)
template<class S>
Vector2T
&
operator=
(const
Vector2T
< S > &v)
Vector2T
&
clear
(void)
Vector2T
&
make
(double cx, double cy)
Vector2T
&
make
(double xy)
bool
operator==
(const
Vector2T
&src) const
bool
operator!=
(const
Vector2T
&src) const
Vector2T
&
operator+=
(const
Vector2T
&v)
Vector2T
&
operator-=
(const
Vector2T
&v)
Vector2T
&
operator *=
(double s)
Vector2T
&
operator/=
(double s)
bool
isOne
(void) const
bool
isZero
(void) const
bool
isValid
(void) const
double
length
(void) const
double
lengthSqr
(void) const
Vector2T
&
negate
(void)
Vector2T
&
normalize
(double len=1.0)
Vector2T
&
scale
(const
Vector2T
&v)
Vector2T
&
descale
(const
Vector2T
&v)
Vector2T
&
rotate
(double s, double c)
Vector2T
&
rotate
(double angle)
double
angle
(void) const
Vector2T
&
clampUnit
(void)
const
T
&
operator[]
(int i) const
T
&
operator[]
(int i)
Public Attributes
T
x
T
y
template<class T>
class Vector2T< T >
Constructor & Destructor Documentation
template<class T>
Vector2T
<
T
>::
Vector2T
(
)
[inline]
template<class T>
Vector2T
<
T
>::
Vector2T
(
float
cx
,
float
cy
)
[inline]
template<class T>
Vector2T
<
T
>::
Vector2T
(
double
cx
,
double
cy
)
[inline]
template<class T>
template<class S>
Vector2T
<
T
>::
Vector2T
(
const
Vector2T
< S > &
v
)
[inline]
template<class T>
Vector2T
<
T
>::
Vector2T
(
)
[inline]
template<class T>
Vector2T
<
T
>::
Vector2T
(
float
cx
,
float
cy
)
[inline]
template<class T>
Vector2T
<
T
>::
Vector2T
(
double
cx
,
double
cy
)
[inline]
template<class T>
template<class S>
Vector2T
<
T
>::
Vector2T
(
const
Vector2T
< S > &
v
)
[inline]
Member Function Documentation
template<class T>
template<class S>
Vector2T
&
Vector2T
<
T
>::operator=
(
const
Vector2T
< S > &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::clear
(
void
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::make
(
double
cx
,
double
cy
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::make
(
double
xy
)
[inline]
template<class T>
bool
Vector2T
<
T
>::operator==
(
const
Vector2T
<
T
> &
src
)
const
[inline]
template<class T>
bool
Vector2T
<
T
>::operator!=
(
const
Vector2T
<
T
> &
src
)
const
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator+=
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator-=
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator *=
(
double
s
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator/=
(
double
s
)
[inline]
template<class T>
bool
Vector2T
<
T
>::isOne
(
void
)
const
[inline]
template<class T>
bool
Vector2T
<
T
>::isZero
(
void
)
const
[inline]
template<class T>
bool
Vector2T
<
T
>::isValid
(
void
)
const
[inline]
template<class T>
double
Vector2T
<
T
>::length
(
void
)
const
[inline]
template<class T>
double
Vector2T
<
T
>::lengthSqr
(
void
)
const
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::negate
(
void
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::normalize
(
double
len
=
1.0
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::scale
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::descale
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::rotate
(
double
s
,
double
c
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::rotate
(
double
angle
)
[inline]
template<class T>
double
Vector2T
<
T
>::angle
(
void
)
const
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::clampUnit
(
void
)
[inline]
template<class T>
const
T
&
Vector2T
<
T
>::operator[]
(
int
i
)
const
[inline]
template<class T>
T
&
Vector2T
<
T
>::operator[]
(
int
i
)
[inline]
template<class T>
template<class S>
Vector2T
&
Vector2T
<
T
>::operator=
(
const
Vector2T
< S > &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::clear
(
void
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::make
(
double
cx
,
double
cy
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::make
(
double
xy
)
[inline]
template<class T>
bool
Vector2T
<
T
>::operator==
(
const
Vector2T
<
T
> &
src
)
const
[inline]
template<class T>
bool
Vector2T
<
T
>::operator!=
(
const
Vector2T
<
T
> &
src
)
const
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator+=
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator-=
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator *=
(
double
s
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::operator/=
(
double
s
)
[inline]
template<class T>
bool
Vector2T
<
T
>::isOne
(
void
)
const
[inline]
template<class T>
bool
Vector2T
<
T
>::isZero
(
void
)
const
[inline]
template<class T>
bool
Vector2T
<
T
>::isValid
(
void
)
const
[inline]
template<class T>
double
Vector2T
<
T
>::length
(
void
)
const
[inline]
template<class T>
double
Vector2T
<
T
>::lengthSqr
(
void
)
const
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::negate
(
void
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::normalize
(
double
len
=
1.0
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::scale
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::descale
(
const
Vector2T
<
T
> &
v
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::rotate
(
double
s
,
double
c
)
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::rotate
(
double
angle
)
[inline]
template<class T>
double
Vector2T
<
T
>::angle
(
void
)
const
[inline]
template<class T>
Vector2T
&
Vector2T
<
T
>::clampUnit
(
void
)
[inline]
template<class T>
const
T
&
Vector2T
<
T
>::operator[]
(
int
i
)
const
[inline]
template<class T>
T
&
Vector2T
<
T
>::operator[]
(
int
i
)
[inline]
Member Data Documentation
template<class T>
T
Vector2T
<
T
>::
x
template<class T>
T
Vector2T
<
T
>::
y
The documentation for this class was generated from the following files:
extensions/Vector2.hpp
solarloaders/Vector2.hpp
Generated on Mon Mar 12 21:09:19 2007 for VEE - The Visual Effects Engine by
1.4.6