Fade2.5D Documentation pages v2.16.7
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::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 a Vector2. More...
 

Variables

class CLASS_DECLSPEC GEOM_FADE25D::Vector2
 

Function Documentation

◆ crossProduct()

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

Computes the cross product of two vectors.

Parameters
vec0The first vector.
vec1The second vector.
Returns
A new vector resulting from the cross product.

◆ operator*()

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

Multiplies a scalar by a vector.

Parameters
dThe scalar value.
vecThe vector to multiply.
Returns
A new vector resulting from the multiplication.

◆ operator+()

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

Adds two vectors.

Parameters
vec0The first vector.
vec1The second vector.
Returns
A new vector resulting from the addition.

◆ operator-() [1/2]

Vector2 GEOM_FADE25D::operator- ( const Vector2 in)
inline

Returns a vector pointing in the opposite direction.

Returns
A new vector pointing in the opposite direction.

◆ operator-() [2/2]

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

Subtracts two vectors.

Parameters
vec0The first vector.
vec1The second vector.
Returns
A new vector resulting from the subtraction.

◆ operator<<()

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

Prints a Vector2 to an output stream.

Parameters
streamThe output stream.
vecThe vector to print.
Returns
The output stream.