C# Class VectorMath.Vector2

Show file Open project: zlynn1990/SpaceSim

Public Methods

Method Description
Cross ( Vector2 v ) : float
Distance ( Vector2 other ) : float
Dot ( Vector2 other ) : float
Length ( ) : float
LengthSquared ( ) : float
Lerp ( Vector2 from, Vector2 to, float t ) : Vector2
Mirror ( ) : void
ToString ( ) : string
Vector2 ( ) : System
Vector2 ( float x, float y ) : System
operator ( ) : Vector2

Method Details

Cross() public method

public Cross ( Vector2 v ) : float
v Vector2
return float

Distance() public method

public Distance ( Vector2 other ) : float
other Vector2
return float

Dot() public method

public Dot ( Vector2 other ) : float
other Vector2
return float

Length() public method

public Length ( ) : float
return float

LengthSquared() public method

public LengthSquared ( ) : float
return float

Lerp() public static method

public static Lerp ( Vector2 from, Vector2 to, float t ) : Vector2
from Vector2
to Vector2
t float
return Vector2

Mirror() public method

public Mirror ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Vector2() public method

public Vector2 ( ) : System
return System

Vector2() public method

public Vector2 ( float x, float y ) : System
x float
y float
return System

operator() public static method

public static operator ( ) : Vector2
return Vector2