public class SpritedRectangle extends ConvexObject
Constructor | Description |
---|---|
SpritedRectangle(Vector3d vertex,
Texture sprite,
AnchorPosition anchor,
G2DTextureDrawingTools drawingTools,
double rotationAngle) |
|
SpritedRectangle(Vector3d vertex,
Transformation transf,
java.awt.image.BufferedImage image,
Texture.Filter filter) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<ConvexObject> |
breakObject(ConvexObject o) |
Abstract method
Break this ConvexObject against the ConvexObject o
|
java.util.List<ConvexObject> |
breakObject(Segment o) |
|
java.util.List<ConvexObject> |
breakObject(SpritedRectangle o) |
|
java.util.List<ConvexObject> |
breakObject(Triangle o) |
|
java.util.List<ConvexObject> |
breakObject(Vector4d v) |
Abstract method
Break this ConvexObject against a plane
|
void |
draw(java.awt.Graphics2D g2d) |
Draw this object on a Graphics2D object
|
Texture |
getSprite() |
|
java.lang.String |
toString() |
getColorsBarycenter, getNormal, getPrecedence, getProjectedContour, getProjectedPolyLine, getProvidedNormal, is2D, isBehind, isBehind, isDegenerate, isEqual, isGreaterOrEqual, isLowerOrEqual, isMonochromatic, isNanOrInf, isNanOrInf, isNegativeOrNull, isNull, isPlanar, isPositiveOrNull, minmax2D, minmax3D, resetDefaultPrecedence, setNormal, setPrecedence
addArea, areCoplanar, check, check2DIntersection, check2DTrueIntersection, drawAreas, isBehind
public SpritedRectangle(Vector3d vertex, Texture sprite, AnchorPosition anchor, G2DTextureDrawingTools drawingTools, double rotationAngle) throws InvalidPolygonException
InvalidPolygonException
public SpritedRectangle(Vector3d vertex, Transformation transf, java.awt.image.BufferedImage image, Texture.Filter filter) throws InvalidPolygonException
InvalidPolygonException
public java.util.List<ConvexObject> breakObject(ConvexObject o)
ConvexObject
breakObject
in class ConvexObject
o
- a ConvexObjectpublic java.util.List<ConvexObject> breakObject(Triangle o)
public java.util.List<ConvexObject> breakObject(Segment o)
public java.util.List<ConvexObject> breakObject(SpritedRectangle o)
public java.util.List<ConvexObject> breakObject(Vector4d v)
ConvexObject
breakObject
in class ConvexObject
v
- plane definitionpublic Texture getSprite()
public void draw(java.awt.Graphics2D g2d)
AbstractDrawable3DObject
draw
in class AbstractDrawable3DObject
g2d
- the Graphics2d object where to drawpublic java.lang.String toString()
toString
in class java.lang.Object