Class Point


public class Point extends PrimitiveShape
The GJKSM shape implementation of a single point.
Since:
19.06.2021
Author:
Juyas
  • Constructor Details

    • Point

      public Point(org.joml.Vector2f relativePoint)
  • Method Details

    • supportPoint

      public org.joml.Vector2f supportPoint(org.joml.Vector2f v)
      Description copied from class: PrimitiveShape
      According 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:
      supportPoint in class PrimitiveShape
      Parameters:
      v - the direction
      Returns:
      the point of the shape that is most in the direction of v