Class LineIterator
Defined in File line_iterator.hpp
Class Documentation
An iterator implementing Bresenham Ray-Tracing.
Public Functions
A constructor for LineIterator.
- Parameters:
x0 – Starting x
y0 – Starting y
x1 – Ending x
y1 – Ending y
If the iterator is valid.
- Returns:
bool If valid
Advance iteration along the line.
Get current X value.
- Returns:
X
Get current Y value.
- Returns:
Y
Get initial X value.
- Returns:
X
Get initial Y value.
- Returns:
Y
Get terminal X value.
- Returns:
X
Get terminal Y value.
- Returns:
Y