C# Class StdPaint.Point

Show file Open project: TheBerkin/StdPaint

Public Properties

Property Type Description
X int
Y int

Public Methods

Method 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 method

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

Point() public method

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.
return System

ToString() public method

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

ToVector2() public method

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

VectorDot() public static method

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.
return int

operator() public static method

Multiplies two points.
public static operator ( ) : Point
return Point

Property Details

X public property

The X position.
public int X
return int

Y public property

The Y position.
public int Y
return int