Class PhongRenderer.EdgeEntryEx
java.lang.Object
|
+--FlatRenderer.EdgeEntry
|
+--PhongRenderer.EdgeEntryEx
- Enclosing class:
- PhongRenderer
- protected class PhongRenderer.EdgeEntryEx
- extends FlatRenderer.EdgeEntry
Extended edge information containing normal vectors for each entry.
|
Field Summary |
protected Vector3D |
endNormal
The ending normal vector at the point (xmax,ymax) of this edge. |
protected Vector3D |
startNormal
The starting normal vector at the point (xmin,ymin) of this edge. |
| Methods inherited from class FlatRenderer.EdgeEntry |
getDenominator,
getNumerator,
getOwner,
getX,
getXMin,
getYMax,
getYMin,
isHorizontal,
isVertical,
nextX,
toString |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
startNormal
protected Vector3D startNormal
- The starting normal vector at the point (xmin,ymin) of this edge.
endNormal
protected Vector3D endNormal
- The ending normal vector at the point (xmax,ymax) of this edge.
PhongRenderer.EdgeEntryEx
public PhongRenderer.EdgeEntryEx(Mesh.Polygon poly,
int xmin,
int ymin,
int xmax,
int ymax,
Vector3D startNormal,
Vector3D endNormal)
- Constructs the edge entry information.
- Parameters:
poly - the polygon that this edge belong sto.xmin - the starting x coordinate value, in screen coordinates.ymin - the starting y coordinate value, in screen coordinates.xmax - the ending x coordinate value, in screen coordinates.ymax - the ending y coordinate value, in screen coordinates.startNormal - the normal vector of the polygon vertice at
(xmin,ymin).endNormal - the normal vector of the polygon vertice at
(xmax,ymax)
getStartNormal
public Vector3D getStartNormal()
- Returns the starting normal vector of this edge.
getEndNormal
public Vector3D getEndNormal()
- Returns the ending normal vector of this edge.