Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Bitmap.Segment Struct Reference

List of all members.

Detailed Description

A polygon edge and scan state.


Public Member Functions

void setup (float sx, float sy, float ex, float ey, inout float miny, inout float maxy)
 Store variables as appropriate.

float evaly (float y)
 Evaluate the x coordinate at the given y point.

void pointy (float y, inout float minx, inout float maxx)
 Setup parameters for a given vertical scanline.


Public Attributes

float sx
 Starting horizontal coordinate of the segment.

float sy
 Starting vertical coordinate of the segment (must be at most ey).

float ex
 Ending horizontal coordinate of the segment.

float ey
 Ending horizontal coordinate of the segment (must be at least sy).

bit up
 Whether this is segment is up (true) or down (false).

float px
 Starting point of this scan.


Member Function Documentation

float Bitmap.Segment.evaly float  y  ) 
 

Evaluate the x coordinate at the given y point.

Out-of-range values are saturated.

void Bitmap.Segment.pointy float  y,
inout float  minx,
inout float  maxx
 

Setup parameters for a given vertical scanline.

minx is set to px if it is above it or if minx is float.nan. maxx is set to qx if it is above it or if maxx is float.nan.

void Bitmap.Segment.setup float  sx,
float  sy,
float  ex,
float  ey,
inout float  miny,
inout float  maxy
 

Store variables as appropriate.

sy can be above ey; if it is, they're swapped and up is set to true. miny is set to sy if it is above it or if miny is float.nan. maxy is set to ey if it is below it or if maxy is float.nan.


The documentation for this struct was generated from the following file:
Generated on Thu Sep 4 13:12:51 2003 for dig by doxygen 1.3.2