com.kuka.nav.geometry
Class SpatialForm2D

java.lang.Object
  extended by com.kuka.geometry.SpatialForm
      extended by 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.


Constructor Summary
SpatialForm2D()
           
 
Method Summary
abstract  boolean approxEquals(SpatialForm2D other, double epsilon)
          Compares this form with another form and permits a degree of inaccuracy.
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 void setName(String name)
          Sets the name of this spatial form.
 
Methods inherited from class com.kuka.geometry.SpatialForm
createFrame, getOwnerObject, getReferenceFrame, setOwnerObject, setReferenceFrame
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialForm2D

public SpatialForm2D()
Method Detail

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 form
epsilon - 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.