C# Class DivineRightGame.Managers.HelperObjects.Line

Represents a line in the map
Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Méthode Description
GetRoundedMidpoint ( ) : MapCoordinate

Gets the midpoint coordinate of this line. Rounded

Length ( ) : double

Returns the Euclidean lenght of the line. If any of the values are null, will throw an exception

Line ( ) : System
Line ( MapCoordinate start, MapCoordinate end ) : System
Line ( int startX, int startY, int endX, int endY ) : System

Creates a line on a 2D plane with specified x1y1 x2y2 coordinates

Method Details

GetRoundedMidpoint() public méthode

Gets the midpoint coordinate of this line. Rounded
public GetRoundedMidpoint ( ) : MapCoordinate
Résultat MapCoordinate

Length() public méthode

Returns the Euclidean lenght of the line. If any of the values are null, will throw an exception
public Length ( ) : double
Résultat double

Line() public méthode

public Line ( ) : System
Résultat System

Line() public méthode

public Line ( MapCoordinate start, MapCoordinate end ) : System
start MapCoordinate
end MapCoordinate
Résultat System

Line() public méthode

Creates a line on a 2D plane with specified x1y1 x2y2 coordinates
public Line ( int startX, int startY, int endX, int endY ) : System
startX int
startY int
endX int
endY int
Résultat System