Package com.amalgamasimulation.geometry
Class AbstractGeometricPrimitive
java.lang.Object
com.amalgamasimulation.geometry.AbstractGeometricPrimitive
- Author:
- Andrey Malykhanov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancontainsPoint(Point point) Checks whether this primitive contains the specified pointabstract StringReturns the string representing Java code that creates this primitive in its current state
-
Constructor Details
-
AbstractGeometricPrimitive
public AbstractGeometricPrimitive()
-
-
Method Details
-
containsPoint
Checks whether this primitive contains the specified point- Parameters:
point- the specified point- Returns:
trueif this primitive contains the specified point,falseotherwise
-
toCodeString
Returns the string representing Java code that creates this primitive in its current state- Returns:
- Java code required to create this primitive in its current state
-