C# 클래스 Sparrow.Geom.Point

The Point class describes a two dimensional point or vector. */
상속: SparrowSharp.Pool.PooledObject
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
X float
Y float

공개 메소드들

메소드 설명
AddPoint ( Point point ) : void
CopyFromPoint ( Point point ) : void
Create ( float x = 0.0f, float y = 0.0f ) : Point
Distance ( Point p2 ) : float
Dot ( Point other ) : float
Equals ( Point other ) : bool

Determines whether the specified Point's X and Y values is equal to the current Point with with a small epsilon error margin.

Invert ( ) : void
Normalize ( ) : void
RotateBy ( float angle ) : void

Rotates by the specified angle in Radians

SubtractPoint ( Point point ) : void

비공개 메소드들

메소드 설명
Init ( ) : Point
Point ( float x = 0.0f, float y = 0.0f ) : System

메소드 상세

AddPoint() 공개 메소드

public AddPoint ( Point point ) : void
point Point
리턴 void

CopyFromPoint() 공개 메소드

public CopyFromPoint ( Point point ) : void
point Point
리턴 void

Create() 공개 정적인 메소드

public static Create ( float x = 0.0f, float y = 0.0f ) : Point
x float
y float
리턴 Point

Distance() 공개 메소드

public Distance ( Point p2 ) : float
p2 Point
리턴 float

Dot() 공개 메소드

public Dot ( Point other ) : float
other Point
리턴 float

Equals() 공개 메소드

Determines whether the specified Point's X and Y values is equal to the current Point with with a small epsilon error margin.
public Equals ( Point other ) : bool
other Point
리턴 bool

Invert() 공개 메소드

public Invert ( ) : void
리턴 void

Normalize() 공개 메소드

public Normalize ( ) : void
리턴 void

RotateBy() 공개 메소드

Rotates by the specified angle in Radians
public RotateBy ( float angle ) : void
angle float
리턴 void

SubtractPoint() 공개 메소드

public SubtractPoint ( Point point ) : void
point Point
리턴 void

프로퍼티 상세

X 공개적으로 프로퍼티

public float X
리턴 float

Y 공개적으로 프로퍼티

public float Y
리턴 float