Package org.robwork.sdurw_geometry
Class SphereDistanceCalc
- java.lang.Object
-
- org.robwork.sdurw_geometry.BVDistanceCalcSphereDistanceCalc
-
- org.robwork.sdurw_geometry.SphereDistanceCalc
-
public class SphereDistanceCalc extends BVDistanceCalcSphereDistanceCalc
class for testing if two Oriented Bounding Boxes are overlapping
-
-
Constructor Summary
Constructors Constructor Description SphereDistanceCalc()
constructorSphereDistanceCalc(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
double
distance(BSphere a, BSphere b)
Calculates the distance between two bounding spheres.double
distance(BSphere a, BSphere b, Vector3D aTb)
Calculates the distance between two bounding spheres.double
distanceSqr(BSphere a, BSphere b, Vector3D aTb)
calculates the squared distance between two bounding spheres.static long
getCPtr(SphereDistanceCalc obj)
-
Methods inherited from class org.robwork.sdurw_geometry.BVDistanceCalcSphereDistanceCalc
distance, getCPtr
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(SphereDistanceCalc obj)
-
delete
public void delete()
- Overrides:
delete
in classBVDistanceCalcSphereDistanceCalc
-
distance
public double distance(BSphere a, BSphere b, Vector3D aTb)
Calculates the distance between two bounding spheres.- Overrides:
distance
in classBVDistanceCalcSphereDistanceCalc
-
distance
public double distance(BSphere a, BSphere b)
Calculates the distance between two bounding spheres.- Overrides:
distance
in classBVDistanceCalcSphereDistanceCalc
-
-