C# 클래스 StdPaint.Point

파일 보기 프로젝트 열기: TheBerkin/StdPaint

공개 프로퍼티들

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

공개 메소드들

메소드 설명
Mid ( Point a, Point b ) : Point

Returns the midpoint between two points.

Point ( int x, int y ) : System

Initializes a new instance of the StdPaint.Point structure with the specified coordinates.

ToString ( ) : string

Returns a string representing this Point.

ToVector2 ( ) : Vector2

Returns a Vector2 object that contains the Point's current coordinates.

VectorDot ( Point a, Point b ) : int

Returns the dot product between two points.

operator ( ) : Point

Multiplies two points.

메소드 상세

Mid() 공개 정적인 메소드

Returns the midpoint between two points.
public static Mid ( Point a, Point b ) : Point
a Point The first point.
b Point The second point.
리턴 Point

Point() 공개 메소드

Initializes a new instance of the StdPaint.Point structure with the specified coordinates.
public Point ( int x, int y ) : System
x int The X position.
y int The Y position.
리턴 System

ToString() 공개 메소드

Returns a string representing this Point.
public ToString ( ) : string
리턴 string

ToVector2() 공개 메소드

Returns a Vector2 object that contains the Point's current coordinates.
public ToVector2 ( ) : Vector2
리턴 Vector2

VectorDot() 공개 정적인 메소드

Returns the dot product between two points.
public static VectorDot ( Point a, Point b ) : int
a Point The first point.
b Point The second point.
리턴 int

operator() 공개 정적인 메소드

Multiplies two points.
public static operator ( ) : Point
리턴 Point

프로퍼티 상세

X 공개적으로 프로퍼티

The X position.
public int X
리턴 int

Y 공개적으로 프로퍼티

The Y position.
public int Y
리턴 int