Package games.stendhal.common.math
Class Geometry
java.lang.Object
games.stendhal.common.math.Geometry
Geometry algorithms.
- Author:
- silvio
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
closestPoint_CapsulePointf(float[] result, float[] capsulePt1, float[] capsulePt2, float capsuleRadius, float[] point)
static boolean
closestPoint_RayPointf(float[] result, float[] rayOrigin, float[] rayDirection, float[] point)
static boolean
closestPoint_SpherePointf(float[] result, float[] sphereCenter, float sphereRadius, float[] point)
static float
distance_LinePointf(float[] linePt1, float[] linePt2, float[] point)
static float
distanceSqrt_LinePointf(float[] linePt1, float[] linePt2, float[] point)
static float
halfSpaceTest_PlanePointf(float[] planeNormal, float[] planePoint, float[] point)
static float
halfSpaceTest_PlanePointf(float[] planeNormal, float planeDist, float[] point)
-
Constructor Details
-
Geometry
public Geometry()
-
-
Method Details
-
halfSpaceTest_PlanePointf
public static float halfSpaceTest_PlanePointf(float[] planeNormal, float planeDist, float[] point) -
halfSpaceTest_PlanePointf
public static float halfSpaceTest_PlanePointf(float[] planeNormal, float[] planePoint, float[] point) -
closestPoint_RayPointf
public static boolean closestPoint_RayPointf(float[] result, float[] rayOrigin, float[] rayDirection, float[] point) -
closestPoint_SpherePointf
public static boolean closestPoint_SpherePointf(float[] result, float[] sphereCenter, float sphereRadius, float[] point) -
closestPoint_CapsulePointf
public static boolean closestPoint_CapsulePointf(float[] result, float[] capsulePt1, float[] capsulePt2, float capsuleRadius, float[] point) -
distanceSqrt_LinePointf
public static float distanceSqrt_LinePointf(float[] linePt1, float[] linePt2, float[] point) -
distance_LinePointf
public static float distance_LinePointf(float[] linePt1, float[] linePt2, float[] point)
-