Constructor and Description |
---|
Point(float x,
float y,
float z,
processing.core.PApplet parent)
Constructs a new point object with the given 3d geometry.
|
Point(float x,
float y,
processing.core.PApplet parent)
Constructs a new point object with the given 2d geometry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y)
Tests whether the given location matches this point.
|
void |
draw(Geographic transformer)
Draws the point in the parent sketch.
|
processing.core.PVector |
getCoords()
Reports the coordinates of the point feature.
|
int |
getNumVertices()
Reports the number of vertices that make up the point definition.
|
FeatureType |
getType()
Report the type of feature (point).
|
void |
setRenderer(Drawable renderer)
Sets the renderer to be used for drawing this feature.
|
static void |
setTolerance(float tolerance)
Sets the tolerance values used for contains() testing.
|
public Point(float x, float y, processing.core.PApplet parent)
x
- x coordinates of the point.y
- y coordinates of the point.parent
- The parent sketch.public Point(float x, float y, float z, processing.core.PApplet parent)
x
- x coordinates of the point.y
- y coordinates of the point.z
- z coordinates of the point.parent
- The parent sketch.public int getNumVertices()
getNumVertices
in interface Feature
public FeatureType getType()
public processing.core.PVector getCoords()
public void draw(Geographic transformer)
public void setRenderer(Drawable renderer)
setRenderer
in interface Feature
renderer
- New renderer to use or null if default rendering is to be used.public static void setTolerance(float tolerance)
tolerance
- Tolerance distance in the same units as the point's coordinates.public boolean contains(float x, float y)