C# Class LifeSimulation.Core.Vector

Exibir arquivo Open project: dankrusi/life-simulation-challenge Class Usage Examples

Public Properties

Property Type Description
Empty Vector

Public Methods

Method Description
AngleBetween ( Vector other ) : double
Distance ( Vector other ) : double
Distance ( Vector v1, Vector v2 ) : double
Dot ( Vector other ) : double
Equals ( object obj ) : bool
FromAngle ( double length, double radians ) : Vector
GetHashCode ( ) : int
Norm ( ) : double
Normalize ( ) : Vector
ToString ( ) : string
Vector ( double x, double y ) : System
operator ( ) : Vector
operator ( ) : bool

Method Details

AngleBetween() public method

public AngleBetween ( Vector other ) : double
other Vector
return double

Distance() public method

public Distance ( Vector other ) : double
other Vector
return double

Distance() public static method

public static Distance ( Vector v1, Vector v2 ) : double
v1 Vector
v2 Vector
return double

Dot() public method

public Dot ( Vector other ) : double
other Vector
return double

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromAngle() public static method

public static FromAngle ( double length, double radians ) : Vector
length double
radians double
return Vector

GetHashCode() public method

public GetHashCode ( ) : int
return int

Norm() public method

public Norm ( ) : double
return double

Normalize() public method

public Normalize ( ) : Vector
return Vector

ToString() public method

public ToString ( ) : string
return string

Vector() public method

public Vector ( double x, double y ) : System
x double
y double
return System

operator() public static method

public static operator ( ) : Vector
return Vector

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

public static Vector,LifeSimulation.Core Empty
return Vector