Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
Vector.h File Reference
#include <cmath>
#include <cstring>
#include <iostream>
#include <cassert>
#include <limits>
#include "cinder/CinderMath.h"
Include dependency graph for Vector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 cinder
 

Typedefs

typedef Vec2< intcinder::Vec2i
 
typedef Vec2< float > cinder::Vec2f
 
typedef Vec2< double > cinder::Vec2d
 
typedef Vec3< intcinder::Vec3i
 
typedef Vec3< float > cinder::Vec3f
 
typedef Vec3< double > cinder::Vec3d
 
typedef Vec4< intcinder::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) More...
 
template<typename T >
Vec2< T > cinder::fromPolar (Vec2< T > pol)
 Converts a coordinate from polar coordinates of the form (radius, theta) to rectangular coordinates. More...
 
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)