include/cinder/Vector.h File Reference

Go to the source code of this file.

Classes

class  cinder::Vec2< T >
class  cinder::Vec3< T >
class  cinder::Vec4< T >

Namespaces

namespace  cinder

Typedefs

typedef Vec2< int > cinder::Vec2i
typedef Vec2< float > cinder::Vec2f
typedef Vec2< double > cinder::Vec2d
typedef Vec3< int > cinder::Vec3i
typedef Vec3< float > cinder::Vec3f
typedef Vec3< double > cinder::Vec3d
typedef Vec4< int > cinder::Vec4i
typedef Vec4< float > cinder::Vec4f
typedef Vec4< double > cinder::Vec4d

Functions

template<typename T >
Vec2< T > cinder::toPolar (Vec2< T > car)
 Converts a coordinate from rectangular (Cartesian) coordinates to polar coordinates of the form (radius, theta).
template<typename T >
Vec2< T > cinder::fromPolar (Vec2< T > pol)
 Converts a coordinate from polar coordinates of the form (radius, theta) to rectangular coordinates.
template<typename T , typename Y >
Vec2< T > cinder::operator* (Y s, const Vec2< T > &v)
template<typename T , typename Y >
Vec2< T > cinder::operator* (const Vec2< T > &v, Y s)
template<typename T , typename Y >
Vec3< T > cinder::operator* (Y s, const Vec3< T > &v)
template<typename T , typename Y >
Vec3< T > cinder::operator* (const Vec3< T > &v, Y s)
template<typename T , typename Y >
Vec4< T > cinder::operator* (Y s, const Vec4< T > &v)
template<typename T , typename Y >
Vec4< T > cinder::operator* (const Vec4< T > &v, Y s)
template<typename T >
cinder::dot (const Vec2< T > &a, const Vec2< T > &b)
template<typename T >
cinder::dot (const Vec3< T > &a, const Vec3< T > &b)
template<typename T >
cinder::dot (const Vec4< T > &a, const Vec4< T > &b)
template<typename T >
Vec3< T > cinder::cross (const Vec3< T > &a, const Vec3< T > &b)
template<typename T >
Vec4< T > cinder::cross (const Vec4< T > &a, const Vec4< T > &b)
template<typename T >
bool cinder::isNaN (const Vec2< T > &a)
template<typename T >
bool cinder::isNaN (const Vec3< T > &a)
template<typename T >
bool cinder::isNaN (const Vec4< T > &a)