GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Vector2d Struct Reference

#include <VectorTools.hh>

Public Member Functions

void operator*= (float x)
void operator/= (float x)
float Length () const
float Dist () const
Vector2d operator- ()

Static Public Member Functions

static float DotProduct (const Vector2d &v, const Vector2d &v2)
static Vector2d FromPoint (const Point2d &p)

Public Attributes

float dx
float dy

Friends

Vector2d operator+ (const Vector2d &p1, const Vector2d &p2)
Vector2d operator* (float x, const Vector2d &p)
Vector2d operator* (const Vector2d &p, float x)

Member Function Documentation

◆ Dist()

float Vector2d::Dist ( ) const
inline
Here is the caller graph for this function:

◆ DotProduct()

float Vector2d::DotProduct ( const Vector2d & v,
const Vector2d & v2 )
inlinestatic
Here is the caller graph for this function:

◆ FromPoint()

Vector2d Vector2d::FromPoint ( const Point2d & p)
inlinestatic
Here is the caller graph for this function:

◆ Length()

float Vector2d::Length ( ) const
Here is the caller graph for this function:

◆ operator*=()

void Vector2d::operator*= ( float x)
inline

◆ operator-()

Vector2d Vector2d::operator- ( )
inline

◆ operator/=()

void Vector2d::operator/= ( float x)
inline

◆ operator* [1/2]

Vector2d operator* ( const Vector2d & p,
float x )
friend

◆ operator* [2/2]

Vector2d operator* ( float x,
const Vector2d & p )
friend

◆ operator+

Vector2d operator+ ( const Vector2d & p1,
const Vector2d & p2 )
friend

Member Data Documentation

◆ dx

float Vector2d::dx

◆ dy

float Vector2d::dy

The documentation for this struct was generated from the following files: