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