public class UtilityCircle
extends java.lang.Object
Constructor and Description |
---|
UtilityCircle(double angularDisplacement,
double diameter)
Constructs a circle with centre point at 0,0 and whose circumference is
given by the passed diameter value.
|
UtilityCircle(java.awt.Point p1)
Constructs a circle with centre point at 0,0 and whose circumference
passes through the passed point
|
Modifier and Type | Method and Description |
---|---|
void |
addPointOnCircumference(java.awt.Point p) |
double |
getAngle()
returns the angle of the trajectory that travels through the point
|
double |
getDiameter()
Returns diameter of this circle
|
java.awt.Point |
getPointOnCircumference() |
double |
getXDisplacement()
Returns x displacement of p1, as measured in a horizontal line starting
at the vertical line passing through the centre point, of p1
|
double |
getYDisplacement()
Returns y displacement of p1, as measured in a vertical line starting at
the horizontal line passing through the centre point, of p1
|
public UtilityCircle(double angularDisplacement, double diameter)
angularDisplacement
- diameter
- public UtilityCircle(java.awt.Point p1)
p1
- public void addPointOnCircumference(java.awt.Point p)
public double getXDisplacement()
public double getYDisplacement()
public double getDiameter()
public double getAngle()
public java.awt.Point getPointOnCircumference()