C# Class Sparrow.Geom.Point

The Point class describes a two dimensional point or vector. */
Inheritance: SparrowSharp.Pool.PooledObject
Afficher le fichier Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Méthodes publiques

Свойство Type Description
X float
Y float

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Init ( ) : Point
Point ( float x = 0.0f, float y = 0.0f ) : System

Method Details

AddPoint() public méthode

public AddPoint ( Point point ) : void
point Point
Résultat void

CopyFromPoint() public méthode

public CopyFromPoint ( Point point ) : void
point Point
Résultat void

Create() public static méthode

public static Create ( float x = 0.0f, float y = 0.0f ) : Point
x float
y float
Résultat Point

Distance() public méthode

public Distance ( Point p2 ) : float
p2 Point
Résultat float

Dot() public méthode

public Dot ( Point other ) : float
other Point
Résultat float

Equals() public méthode

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
Résultat bool

Invert() public méthode

public Invert ( ) : void
Résultat void

Normalize() public méthode

public Normalize ( ) : void
Résultat void

RotateBy() public méthode

Rotates by the specified angle in Radians
public RotateBy ( float angle ) : void
angle float
Résultat void

SubtractPoint() public méthode

public SubtractPoint ( Point point ) : void
point Point
Résultat void

Property Details

X public_oe property

public float X
Résultat float

Y public_oe property

public float Y
Résultat float