Package frc.lib.math

Class Penetration

java.lang.Object
frc.lib.math.Penetration
All Implemented Interfaces:
Drawable

public class Penetration extends Object implements Drawable
Result type for SeparatingAxis.
  • Constructor Details

  • Method Details

    • setNormal

      public void setNormal(double x, double y)
      Set penetration direction.
    • setDepth

      public void setDepth(double depth)
      Set penetration depth.
    • getXDir

      public double getXDir()
      Get penetration direction x component.
    • getYDir

      public double getYDir()
      Get penetration direction y component.
    • getDepth

      public double getDepth()
      Get penetration depth.
    • drawImpl

      public void drawImpl()
      Description copied from interface: Drawable
      Draw to AdvantageScope unconditionally.
      Specified by:
      drawImpl in interface Drawable