C# 클래스 Avalon.Structure.Point

Basic structure used for x,y,z coords.
파일 보기 프로젝트 열기: mabinogidev/mabinogi-development

공개 프로퍼티들

프로퍼티 타입 설명
x float
y float
z float

공개 메소드들

메소드 설명
CalculateYaw ( Point a ) : ushort
CalculateYaw ( Point a, Point b ) : ushort
Equals ( object obj ) : bool
GetDistance3D ( Point A, Point B ) : double
GetHashCode ( ) : int
IsInSightRangeByRadius ( Point A, Point B ) : bool

Check if a object is in sightrange of eachother

IsInSightRangeByRadius ( Point A, Point B, uint maxdistance ) : bool
Point ( float pos ) : System

Initialized a position object out of a array of floats.

The first array element serves as the x component. The second array member serves a the y component. The third element serves as the z component.

Point ( float x, float y, float z ) : System

Initializes a point object out of 3 supplied arguments.

operator ( ) : Point

Multiplies one point with another

operator ( ) : bool

Compares if point a is not the same as point b

메소드 상세

CalculateYaw() 공개 정적인 메소드

public static CalculateYaw ( Point a ) : ushort
a Point
리턴 ushort

CalculateYaw() 공개 정적인 메소드

public static CalculateYaw ( Point a, Point b ) : ushort
a Point
b Point
리턴 ushort

Equals() 공개 메소드

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

GetDistance3D() 공개 정적인 메소드

public static GetDistance3D ( Point A, Point B ) : double
A Point
B Point
리턴 double

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IsInSightRangeByRadius() 공개 정적인 메소드

Check if a object is in sightrange of eachother
public static IsInSightRangeByRadius ( Point A, Point B ) : bool
A Point
B Point
리턴 bool

IsInSightRangeByRadius() 공개 정적인 메소드

public static IsInSightRangeByRadius ( Point A, Point B, uint maxdistance ) : bool
A Point
B Point
maxdistance uint
리턴 bool

Point() 공개 메소드

Initialized a position object out of a array of floats.
The first array element serves as the x component. The second array member serves a the y component. The third element serves as the z component.
public Point ( float pos ) : System
pos float Array of 3 floats.
리턴 System

Point() 공개 메소드

Initializes a point object out of 3 supplied arguments.
public Point ( float x, float y, float z ) : System
x float Position on the x-axis
y float Position on the y-axis
z float Position on the z-axis
리턴 System

operator() 공개 정적인 메소드

Multiplies one point with another
public static operator ( ) : Point
리턴 Point

operator() 공개 정적인 메소드

Compares if point a is not the same as point b
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

x 공개적으로 프로퍼티

x-component
public float x
리턴 float

y 공개적으로 프로퍼티

y-component
public float y
리턴 float

z 공개적으로 프로퍼티

z-component
public float z
리턴 float