C# Class SilverFlow.Geometry.Vector2

Defines two-dimensional vector.
Datei anzeigen Open project: Zoomicon/ZUI

Public Methods

Method Description
Round ( ) : Vector2

Rounds starting and ending points to the nearest integer coordinates.

Vector2 ( ) : System

Initializes a new instance of the Vector2 class.

Vector2 ( Point start, Point end ) : System

Initializes a new instance of the Vector2 class.

Vector2 ( Point start, double lengthX, double lengthY ) : System

Initializes a new instance of the Vector2 class.

Method Details

Round() public method

Rounds starting and ending points to the nearest integer coordinates.
public Round ( ) : Vector2
return Vector2

Vector2() public method

Initializes a new instance of the Vector2 class.
public Vector2 ( ) : System
return System

Vector2() public method

Initializes a new instance of the Vector2 class.
public Vector2 ( Point start, Point end ) : System
start Point The starting point.
end Point The ending point.
return System

Vector2() public method

Initializes a new instance of the Vector2 class.
public Vector2 ( Point start, double lengthX, double lengthY ) : System
start Point The starting point.
lengthX double The length by X-coordinate.
lengthY double The length by Y-coordinate.
return System