com.brackeen.javagamebook.math3D
Class SolidPolygon3D
java.lang.Object
com.brackeen.javagamebook.math3D.Polygon3D
com.brackeen.javagamebook.math3D.SolidPolygon3D
- All Implemented Interfaces:
- Transformable
- public class SolidPolygon3D
- extends Polygon3D
The SolidPolygon3D class is a Polygon with a color.
Method Summary |
java.awt.Color |
getColor()
Gets the color of this solid-colored polygon used for
rendering this polygon. |
void |
setColor(java.awt.Color color)
Sets the color of this solid-colored polygon used for
rendering this polygon. |
void |
setTo(Polygon3D polygon)
Sets this polygon to the same vertices as the specfied
polygon. |
Methods inherited from class com.brackeen.javagamebook.math3D.Polygon3D |
add, add, addRotation, calcBoundingRectangle, calcNormal, clip, getNormal, getNumVertices, getVertex, insertVertex, isFacing, project, setNormal, subtract, subtract, subtractRotation |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolidPolygon3D
public SolidPolygon3D()
SolidPolygon3D
public SolidPolygon3D(Vector3D v0,
Vector3D v1,
Vector3D v2)
SolidPolygon3D
public SolidPolygon3D(Vector3D v0,
Vector3D v1,
Vector3D v2,
Vector3D v3)
SolidPolygon3D
public SolidPolygon3D(Vector3D[] vertices)
setTo
public void setTo(Polygon3D polygon)
- Description copied from class:
Polygon3D
- Sets this polygon to the same vertices as the specfied
polygon.
- Overrides:
setTo
in class Polygon3D
getColor
public java.awt.Color getColor()
- Gets the color of this solid-colored polygon used for
rendering this polygon.
setColor
public void setColor(java.awt.Color color)
- Sets the color of this solid-colored polygon used for
rendering this polygon.