C# Класс StdPaint.Point

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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