C# Класс Sparrow.Geom.Point

The Point class describes a two dimensional point or vector. */
Наследование: SparrowSharp.Pool.PooledObject
Показать файл Открыть проект Примеры использования класса

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

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