C# Class GameMath.Bresenham

Afficher le fichier Open project: npruehs/game-math

Méthodes publiques

Méthode Description
Plot ( Vector2I p, Vector2I q ) : List

Returns an approximation to a straight line between the given points.

See http://rosettacode.org/wiki/Bitmap/Bresenham's_line_algorithm for details.

Method Details

Plot() public méthode

Returns an approximation to a straight line between the given points.
See http://rosettacode.org/wiki/Bitmap/Bresenham's_line_algorithm for details.
public Plot ( Vector2I p, Vector2I q ) : List
p Vector2I /// First line endpoint. ///
q Vector2I /// Second line endpoint. ///
Résultat List