C# Class StdPaint.Point

Afficher le fichier Open project: TheBerkin/StdPaint

Méthodes publiques

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

Méthodes publiques

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

Method Details

Mid() public static méthode

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

Point() public méthode

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.
Résultat System

ToString() public méthode

Returns a string representing this Point.
public ToString ( ) : string
Résultat string

ToVector2() public méthode

Returns a Vector2 object that contains the Point's current coordinates.
public ToVector2 ( ) : Vector2
Résultat Vector2

VectorDot() public static méthode

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.
Résultat int

operator() public static méthode

Multiplies two points.
public static operator ( ) : Point
Résultat Point

Property Details

X public_oe property

The X position.
public int X
Résultat int

Y public_oe property

The Y position.
public int Y
Résultat int