C# 클래스 LifeSimulation.Core.Vector

파일 보기 프로젝트 열기: dankrusi/life-simulation-challenge 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty Vector

공개 메소드들

메소드 설명
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

메소드 상세

AngleBetween() 공개 메소드

public AngleBetween ( Vector other ) : double
other Vector
리턴 double

Distance() 공개 메소드

public Distance ( Vector other ) : double
other Vector
리턴 double

Distance() 공개 정적인 메소드

public static Distance ( Vector v1, Vector v2 ) : double
v1 Vector
v2 Vector
리턴 double

Dot() 공개 메소드

public Dot ( Vector other ) : double
other Vector
리턴 double

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FromAngle() 공개 정적인 메소드

public static FromAngle ( double length, double radians ) : Vector
length double
radians double
리턴 Vector

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Norm() 공개 메소드

public Norm ( ) : double
리턴 double

Normalize() 공개 메소드

public Normalize ( ) : Vector
리턴 Vector

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Vector() 공개 메소드

public Vector ( double x, double y ) : System
x double
y double
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : Vector
리턴 Vector

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

public static Vector,LifeSimulation.Core Empty
리턴 Vector