Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsVector2d Struct Reference

Double version of Vector2 class. More...

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

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]

double OnlineMapsVector2d.SqrMagnitude ( )

Returns the squared length of this vector.

Returns
Squared length of vector

◆ SqrMagnitude() [2/2]

static double OnlineMapsVector2d.SqrMagnitude ( OnlineMapsVector2d a)
static

Returns the squared length of vector.

Parameters
aVector
Returns
Squared length of vector