Files Class List
cyVector.h File Reference

Detailed Description

2D, 3D, 4D, and ND vector classes.

Author
Cem Yuksel
#include "cyCore.h"

Classes

class  Vec< T, N >
 
class  Vec2< T >
 
class  Vec3< T >
 
class  Vec4< T >
 

Typedefs

typedef cy::Vec2f cyVec2f
 
typedef cy::Vec3f cyVec3f
 
typedef cy::Vec4f cyVec4f
 
typedef cy::Vec2d cyVec2d
 
typedef cy::Vec3d cyVec3d
 
typedef cy::Vec4d cyVec4d
 

Support functions

!

typedef Vec2< float > Vec2f
 
typedef Vec3< float > Vec3f
 
typedef Vec4< float > Vec4f
 
typedef Vec2< double > Vec2d
 
typedef Vec3< double > Vec3d
 
typedef Vec4< double > Vec4d
 
template<typename T >
Vec2< T > Normalize (Vec2< T > const &v)
 
template<typename T >
Vec3< T > Normalize (Vec3< T > const &v)
 
template<typename T >
Vec4< T > Normalize (Vec4< T > const &v)
 

Typedef Documentation

§ Vec2f

typedef Vec2<float> Vec2f

2D vector class with float type elements

§ Vec3f

typedef Vec3<float> Vec3f

3D vector class with float type elements

§ Vec4f

typedef Vec4<float> Vec4f

4D vector class with float type elements

§ Vec2d

typedef Vec2<double> Vec2d

2D vector class with double type elements

§ Vec3d

typedef Vec3<double> Vec3d

3D vector class with double type elements

§ Vec4d

typedef Vec4<double> Vec4d

4D vector class with double type elements

§ cyVec2f

typedef cy::Vec2f cyVec2f

2D vector class with float type elements

§ cyVec3f

typedef cy::Vec3f cyVec3f

3D vector class with float type elements

§ cyVec4f

typedef cy::Vec4f cyVec4f

4D vector class with float type elements

§ cyVec2d

typedef cy::Vec2d cyVec2d

2D vector class with double type elements

§ cyVec3d

typedef cy::Vec3d cyVec3d

3D vector class with double type elements

§ cyVec4d

typedef cy::Vec4d cyVec4d

4D vector class with double type elements

Function Documentation

§ Normalize() [1/3]

Vec2<T> cy::Normalize ( Vec2< T > const &  v)

2D vector class with float type elements

§ Normalize() [2/3]

Vec3<T> cy::Normalize ( Vec3< T > const &  v)

2D vector class with float type elements

§ Normalize() [3/3]

Vec4<T> cy::Normalize ( Vec4< T > const &  v)

2D vector class with float type elements