C# Class LifeSimulation.Core.Vector

Afficher le fichier Open project: dankrusi/life-simulation-challenge Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty Vector

Méthodes publiques

Méthode 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 méthode

public AngleBetween ( Vector other ) : double
other Vector
Résultat double

Distance() public méthode

public Distance ( Vector other ) : double
other Vector
Résultat double

Distance() public static méthode

public static Distance ( Vector v1, Vector v2 ) : double
v1 Vector
v2 Vector
Résultat double

Dot() public méthode

public Dot ( Vector other ) : double
other Vector
Résultat double

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FromAngle() public static méthode

public static FromAngle ( double length, double radians ) : Vector
length double
radians double
Résultat Vector

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Norm() public méthode

public Norm ( ) : double
Résultat double

Normalize() public méthode

public Normalize ( ) : Vector
Résultat Vector

ToString() public méthode

public ToString ( ) : string
Résultat string

Vector() public méthode

public Vector ( double x, double y ) : System
x double
y double
Résultat System

operator() public static méthode

public static operator ( ) : Vector
Résultat Vector

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

Empty public_oe static_oe property

public static Vector,LifeSimulation.Core Empty
Résultat Vector