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. | |
|
|
Evaluate the x coordinate at the given y point. Out-of-range values are saturated. |
|
||||||||||||||||
|
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. |
|
||||||||||||||||||||||||||||
|
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. |
1.3.2