Anti-Grain Geometry Tutorial
agg::line_parameters Struct Reference

Public Member Functions

 line_parameters (int x1_, int y1_, int x2_, int y2_, int len_)
 
unsigned orthogonal_quadrant () const
 
unsigned diagonal_quadrant () const
 
bool same_orthogonal_quadrant (const line_parameters &lp) const
 
bool same_diagonal_quadrant (const line_parameters &lp) const
 
void divide (line_parameters &lp1, line_parameters &lp2) const
 

Public Attributes

int x1
 
int y1
 
int x2
 
int y2
 
int dx
 
int dy
 
int sx
 
int sy
 
bool vertical
 
int inc
 
int len
 
int octant
 

Static Public Attributes

static const int8u s_orthogonal_quadrant [8] = { 0,0,1,1,3,3,2,2 }
 
static const int8u s_diagonal_quadrant [8] = { 0,1,2,1,0,3,2,3 }
 

Detailed Description

Definition at line 81 of file agg_line_aa_basics.h.


The documentation for this struct was generated from the following files: