C# 클래스 GameMath.Bresenham

파일 보기 프로젝트 열기: npruehs/game-math

공개 메소드들

메소드 설명
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