public class PsScanline
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float[][] |
m_aAnteile
float[3][>=#scanlines].
|
float[][] |
m_eAnteile
float[3][>=#scanlines].
|
int |
m_length
Number of scanlines.
|
int[] |
m_xa
X-coordinates of scanlines. xa: head, xe: tail, both inclusive.
|
int[] |
m_xe
X-coordinates of scanlines. xa: head, xe: tail, both inclusive.
|
int |
m_ymin
Y-coordinate of first scanlines, next scanlines are m_ymin+1 etc.
|
| Constructor and Description |
|---|
PsScanline() |
| Modifier and Type | Method and Description |
|---|---|
void |
makeScanlines(int x0,
int y0,
int x1,
int y1,
int x2,
int y2)
A triangle in pixel space is digitized in a set of horizontal scanlines.
|
public int[] m_xa
public int[] m_xe
public float[][] m_aAnteile
public float[][] m_eAnteile
public int m_length
public int m_ymin
public void makeScanlines(int x0,
int y0,
int x1,
int y1,
int x2,
int y2)
x0 - x-pixel coordinate of first vertex of a triangle.y0 - y-pixel coordinate of first vertex of a triangle.x1 - x-pixel coordinate of second vertex of a triangle.y1 - y-pixel coordinate of second vertex of a triangle.x2 - x-pixel coordinate of third vertex of a triangle.y2 - y-pixel coordinate of third vertex of a triangle."