Fade2.5D Documentation pages v1.93
Delaunay Features
Vector2.h File Reference
#include "common.h"

Go to the source code of this file.

Classes

class  GEOM_FADE25D::Vector2
 Vector. More...
 

Functions

Vector2 GEOM_FADE25D::crossProduct (const Vector2 &vec0, const Vector2 &vec1)
 Cross product. More...
 
Vector2 GEOM_FADE25D::normalize (const Vector2 &other)
 Normalize a vector.
 
Vector2 GEOM_FADE25D::operator* (double d, const Vector2 &vec)
 Multiplication with a scalar. More...
 
Vector2 GEOM_FADE25D::operator+ (const Vector2 &vec0, const Vector2 &vec1)
 Addition. More...
 
Vector2 GEOM_FADE25D::operator- (const Vector2 &in)
 Opposite vector. More...
 
Vector2 GEOM_FADE25D::operator- (const Vector2 &vec0, const Vector2 &vec1)
 Subtraction. More...
 
std::ostream & GEOM_FADE25D::operator<< (std::ostream &stream, const Vector2 &vec)
 Print to stream. More...
 

Function Documentation

◆ crossProduct()

Vector2 GEOM_FADE25D::crossProduct ( const Vector2 vec0,
const Vector2 vec1 
)
inline

Cross product of two vectors

◆ operator*()

Vector2 GEOM_FADE25D::operator* ( double  d,
const Vector2 vec 
)
inline

Multiplication with a scalar

◆ operator+()

Vector2 GEOM_FADE25D::operator+ ( const Vector2 vec0,
const Vector2 vec1 
)
inline

Addition

◆ operator-() [1/2]

Vector2 GEOM_FADE25D::operator- ( const Vector2 in)
inline
Returns
a vector that points in the opposite direction

◆ operator-() [2/2]

Vector2 GEOM_FADE25D::operator- ( const Vector2 vec0,
const Vector2 vec1 
)
inline

Subtraction

◆ operator<<()

std::ostream& GEOM_FADE25D::operator<< ( std::ostream &  stream,
const Vector2 vec 
)
inline

Print to stream