Online Maps  v3
OnlineMapsVector2d Struct Reference

Double version of Vector2 class. More...

Public Member Functions

 OnlineMapsVector2d (double x, double y)
 Constructor More...
 
double SqrMagnitude ()
 Returns the squared length of this vector More...
 

Static Public Member Functions

static OnlineMapsVector2d Lerp (OnlineMapsVector2d a, OnlineMapsVector2d b, double t)
 Linearly interpolates between two vectors. More...
 
static double SqrMagnitude (OnlineMapsVector2d a)
 Returns the squared length of vector More...
 

Public Attributes

double x
 X or longitude More...
 
double y
 Y or latitude More...
 

Detailed Description

Double version of Vector2 class.

Constructor & Destructor Documentation

◆ OnlineMapsVector2d()

OnlineMapsVector2d.OnlineMapsVector2d ( double  x,
double  y 
)

Constructor

Parameters
xX or longitude
yY or latitude

Member Function Documentation

◆ Lerp()

static OnlineMapsVector2d OnlineMapsVector2d.Lerp ( OnlineMapsVector2d  a,
OnlineMapsVector2d  b,
double  t 
)
static

Linearly interpolates between two vectors.

Parameters
aVector A
bVector B
tInterpolant
Returns

◆ SqrMagnitude() [1/2]

static double OnlineMapsVector2d.SqrMagnitude ( OnlineMapsVector2d  a)
static

Returns the squared length of vector

Parameters
aVector
Returns
Squared length of vector

◆ SqrMagnitude() [2/2]

double OnlineMapsVector2d.SqrMagnitude ( )

Returns the squared length of this vector

Returns
Squared length of vector

Member Data Documentation

◆ x

double OnlineMapsVector2d.x

X or longitude

◆ y

double OnlineMapsVector2d.y

Y or latitude