C# 클래스 SimpleSoccer.Net.Vector2D

파일 보기 프로젝트 열기: soshimozi/SimpleSoccer.Net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
x double
y double

공개 메소드들

메소드 설명
Distance ( Vector2D v2 ) : double
DistanceSq ( Vector2D v2 ) : double
GetDistance ( Vector2D vector ) : double
GetDistanceSquared ( Vector2D vector ) : double
GetDotProduct ( Vector2D v2 ) : double
GetPerp ( ) : Vector2D
GetReverse ( ) : Vector2D
GetSign ( Vector2D vector ) : int
InsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
InsideRegion ( Vector2D p, int left, int top, int right, int bottom ) : bool
Normalize ( ) : void
NotInsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
Reflect ( Vector2D normal ) : void
Sign ( Vector2D v2 ) : int
ToPoint ( ) : PointF
Truncate ( double max ) : void
Vec2DDistance ( Vector2D v1, Vector2D v2 ) : double
Vec2DDistanceSq ( Vector2D v1, Vector2D v2 ) : double
Vec2DLength ( Vector2D v ) : double
Vec2DLengthSq ( Vector2D v ) : double
Vec2DNormalize ( Vector2D v ) : Vector2D
Vector2D ( ) : System
Vector2D ( Vector2D v2 ) : System
Vector2D ( double a, double b ) : System
WrapAround ( Vector2D pos, int MaxX, int MaxY ) : void
Zero ( ) : void
isSecondInFOVOfFirst ( Vector2D posFirst, Vector2D facingFirst, Vector2D posSecond, double fov ) : bool
operator ( ) : Vector2D

메소드 상세

Distance() 공개 메소드

public Distance ( Vector2D v2 ) : double
v2 Vector2D
리턴 double

DistanceSq() 공개 메소드

public DistanceSq ( Vector2D v2 ) : double
v2 Vector2D
리턴 double

GetDistance() 공개 메소드

public GetDistance ( Vector2D vector ) : double
vector Vector2D
리턴 double

GetDistanceSquared() 공개 메소드

public GetDistanceSquared ( Vector2D vector ) : double
vector Vector2D
리턴 double

GetDotProduct() 공개 메소드

public GetDotProduct ( Vector2D v2 ) : double
v2 Vector2D
리턴 double

GetPerp() 공개 메소드

public GetPerp ( ) : Vector2D
리턴 Vector2D

GetReverse() 공개 메소드

public GetReverse ( ) : Vector2D
리턴 Vector2D

GetSign() 공개 메소드

public GetSign ( Vector2D vector ) : int
vector Vector2D
리턴 int

InsideRegion() 공개 정적인 메소드

public static InsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
p Vector2D
top_left Vector2D
bot_rgt Vector2D
리턴 bool

InsideRegion() 공개 정적인 메소드

public static InsideRegion ( Vector2D p, int left, int top, int right, int bottom ) : bool
p Vector2D
left int
top int
right int
bottom int
리턴 bool

Normalize() 공개 메소드

public Normalize ( ) : void
리턴 void

NotInsideRegion() 공개 정적인 메소드

public static NotInsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
p Vector2D
top_left Vector2D
bot_rgt Vector2D
리턴 bool

Reflect() 공개 메소드

public Reflect ( Vector2D normal ) : void
normal Vector2D
리턴 void

Sign() 공개 메소드

public Sign ( Vector2D v2 ) : int
v2 Vector2D
리턴 int

ToPoint() 공개 메소드

public ToPoint ( ) : PointF
리턴 System.Drawing.PointF

Truncate() 공개 메소드

public Truncate ( double max ) : void
max double
리턴 void

Vec2DDistance() 공개 정적인 메소드

public static Vec2DDistance ( Vector2D v1, Vector2D v2 ) : double
v1 Vector2D
v2 Vector2D
리턴 double

Vec2DDistanceSq() 공개 정적인 메소드

public static Vec2DDistanceSq ( Vector2D v1, Vector2D v2 ) : double
v1 Vector2D
v2 Vector2D
리턴 double

Vec2DLength() 공개 정적인 메소드

public static Vec2DLength ( Vector2D v ) : double
v Vector2D
리턴 double

Vec2DLengthSq() 공개 정적인 메소드

public static Vec2DLengthSq ( Vector2D v ) : double
v Vector2D
리턴 double

Vec2DNormalize() 공개 정적인 메소드

public static Vec2DNormalize ( Vector2D v ) : Vector2D
v Vector2D
리턴 Vector2D

Vector2D() 공개 메소드

public Vector2D ( ) : System
리턴 System

Vector2D() 공개 메소드

public Vector2D ( Vector2D v2 ) : System
v2 Vector2D
리턴 System

Vector2D() 공개 메소드

public Vector2D ( double a, double b ) : System
a double
b double
리턴 System

WrapAround() 공개 정적인 메소드

public static WrapAround ( Vector2D pos, int MaxX, int MaxY ) : void
pos Vector2D
MaxX int
MaxY int
리턴 void

Zero() 공개 메소드

public Zero ( ) : void
리턴 void

isSecondInFOVOfFirst() 공개 정적인 메소드

public static isSecondInFOVOfFirst ( Vector2D posFirst, Vector2D facingFirst, Vector2D posSecond, double fov ) : bool
posFirst Vector2D
facingFirst Vector2D
posSecond Vector2D
fov double
리턴 bool

operator() 공개 정적인 메소드

public static operator ( ) : Vector2D
리턴 Vector2D

프로퍼티 상세

x 보호되어 있는 프로퍼티

protected double x
리턴 double

y 보호되어 있는 프로퍼티

protected double y
리턴 double