Package physics.collision.shape
Class Point
java.lang.Object
physics.collision.shape.PrimitiveShape
physics.collision.shape.Point
The GJKSM shape implementation of a single point.
- Since:
- 19.06.2021
- Author:
- Juyas
- 
Field SummaryFields inherited from class physics.collision.shape.PrimitiveShapeabsoluteCentroid, absolutes, boundingSphere, faces, relativeCentroid, relatives, vertices
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.joml.Vector2fsupportPoint(org.joml.Vector2f v) According to GJKSM this method is supposed to calculate the point of the shape, that is most in direction of v.Methods inherited from class physics.collision.shape.PrimitiveShapeadjust, boundingSphere, centroid, faces, getAbsolutePoints, init, initSphere, position, rotateShape, setPosition, setPosition, type, vertices
- 
Constructor Details- 
Pointpublic Point(org.joml.Vector2f relativePoint) 
 
- 
- 
Method Details- 
supportPointpublic org.joml.Vector2f supportPoint(org.joml.Vector2f v) Description copied from class:PrimitiveShapeAccording to GJKSM this method is supposed to calculate the point of the shape, that is most in direction of v. The general rule is, the more primitive the shape is, the more efficient this method can be. This method may be described as max{v*x,x element of Shape} for any complex shape.- Overrides:
- supportPointin class- PrimitiveShape
- Parameters:
- v- the direction
- Returns:
- the point of the shape that is most in the direction of v
 
 
-