C# Класс GameMath.Bresenham

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Plot() публичный Метод

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. ///
Результат List