C# Class ThoNohT.NohBoard.Extra.TPoint

ファイルを表示 Open project: ThoNohT/NohBoard Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
TPoint ( double x, double y ) : System.Drawing

Initializes a new instance of the TPoint class.

TPoint ( float x, float y ) : System.Drawing

Initializes a new instance of the TPoint class.

TPoint ( int x, int y ) : System.Drawing

Initializes a new instance of the TPoint class.

ToString ( ) : string

Returns a string that represents the current object.

Translate ( Size size ) : TPoint

Translates this point.

Translate ( int dx, int dy ) : TPoint

Translates this point.

operator ( ) : TPoint

Adds size to point.

Method Details

TPoint() public method

Initializes a new instance of the TPoint class.
public TPoint ( double x, double y ) : System.Drawing
x double See .
y double See .
return System.Drawing

TPoint() public method

Initializes a new instance of the TPoint class.
public TPoint ( float x, float y ) : System.Drawing
x float See .
y float See .
return System.Drawing

TPoint() public method

Initializes a new instance of the TPoint class.
public TPoint ( int x, int y ) : System.Drawing
x int See .
y int See .
return System.Drawing

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

Translate() public method

Translates this point.
public Translate ( Size size ) : TPoint
size System.Drawing.Size The distance to move the point.
return TPoint

Translate() public method

Translates this point.
public Translate ( int dx, int dy ) : TPoint
dx int The distance to move along the x axis.
dy int The distance to move along the y axis.
return TPoint

operator() public static method

Adds size to point.
public static operator ( ) : TPoint
return TPoint