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 voiddelete()doubledistance(BSphere a, BSphere b)Calculates the distance between two bounding spheres.doubledistance(BSphere a, BSphere b, Vector3D aTb)Calculates the distance between two bounding spheres.doubledistanceSqr(BSphere a, BSphere b, Vector3D aTb)calculates the squared distance between two bounding spheres.static longgetCPtr(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:
deletein classBVDistanceCalcSphereDistanceCalc
-
distance
public double distance(BSphere a, BSphere b, Vector3D aTb)
Calculates the distance between two bounding spheres.- Overrides:
distancein classBVDistanceCalcSphereDistanceCalc
-
distance
public double distance(BSphere a, BSphere b)
Calculates the distance between two bounding spheres.- Overrides:
distancein classBVDistanceCalcSphereDistanceCalc
-
-