Package io.github.espressoengine.object
Class Circle
java.lang.Object
io.github.espressoengine.object.Object
io.github.espressoengine.object.Mesh2D
io.github.espressoengine.object.Circle
Mesh2D with circle geometry.
- Version:
- $Id: $Id
- Author:
- pastthepixels
-
Field Summary
FieldsFields inherited from class io.github.espressoengine.object.Mesh2D
fillColor, geometry, strokeColor, strokeWidthFields inherited from class io.github.espressoengine.object.Object
_enginePosition, boundingBox, dbg, position, rotation, visible, zIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRadius(double radius) Sets the radius of the circle.voidRecreates the geometry of the object taking in factors like its position.Methods inherited from class io.github.espressoengine.object.Mesh2D
updateBoundingBoxMethods inherited from class io.github.espressoengine.object.Object
getBoundingBoxPosition, getZIndex, lookAt, onBeforeDraw
-
Field Details
-
size
-
_geometry
-
-
Constructor Details
-
Circle
public Circle()
-
-
Method Details
-
updateGeometry
public void updateGeometry()Recreates the geometry of the object taking in factors like its position. This function is designed to be overridden and is called automaticaly when the mesh is drawn.- Overrides:
updateGeometryin classMesh2D
-
setRadius
public void setRadius(double radius) Sets the radius of the circle.- Parameters:
radius- a double
-