Embedded Template Library 1.0
|
#include <bresenham_line.h>
Classes | |
class | const_iterator |
Const Iterator. More... | |
Public Types | |
typedef etl::coordinate_2d< T > | value_type |
Standard container types. | |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
Public Member Functions | |
bresenham_line () | |
Constructor. | |
bresenham_line (etl::coordinate_2d< T > first_, etl::coordinate_2d< T > last_) | |
bresenham_line (T first_x, T first_y, T last_x, T last_y) | |
void | reset (etl::coordinate_2d< T > first_, etl::coordinate_2d< T > last_) |
void | reset (T first_x, T first_y, T last_x, T last_y) |
const_iterator | begin () |
const_iterator | end () const |
Get a const_iterator to one past the last coordinate. | |
const_reference | front () const |
Get the first coordinate. | |
const_reference | back () const |
Get the last coordinate. | |
size_t | size () const |
Get the size of the series. | |
Friends | |
bool | operator== (const bresenham_line &lhs, const bresenham_line &rhs) |
Equality operator. | |
bool | operator!= (const bresenham_line &lhs, const bresenham_line &rhs) |
Inequality operator. | |
A pseudo-container that generates points on a line, using Bresenham's line algorithm. T is the type for the etl::coordinate_2d value type. TWork is the internal working variable type. Default is int16_t.
|
inline |
Constructor. Supplied first and last coordinates
Constructor. Supplied first and last coordinates
|
inline |
Get a const_iterator to the first coordinate. Resets the Bresenham line.
|
inline |
Resets the line. Supplied first and last coordinates
Resets the line. Supplied first and last coordinates