com.kuka.nav.geometry
Class SpatialForm2D
java.lang.Object
com.kuka.geometry.SpatialForm
com.kuka.nav.geometry.SpatialForm2D
- Direct Known Subclasses:
- Circle, Polygon
public abstract class SpatialForm2D
- extends com.kuka.geometry.SpatialForm
Base class for all 2D spatial forms.
| Methods inherited from class com.kuka.geometry.SpatialForm |
createFrame, getOwnerObject, getReferenceFrame, setOwnerObject, setReferenceFrame |
SpatialForm2D
public SpatialForm2D()
getName
public String getName()
- Returns:
- the name of this spatial form.
setName
public void setName(String name)
- Sets the name of this spatial form.
- Parameters:
name - the name
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
approxEquals
public abstract boolean approxEquals(SpatialForm2D other,
double epsilon)
- Compares this form with another form and permits a degree of inaccuracy.
- Parameters:
other - another formepsilon - the maximum envelope that coordinates can differ to still be
considered equal
- Returns:
- true if the other form is of the same shape type and its
parameters are within the epsilon envelope of this one
Copyright © 2019. All rights reserved.