Package frc.lib.math
Class Penetration
java.lang.Object
frc.lib.math.Penetration
- All Implemented Interfaces:
Drawable
Result type for
SeparatingAxis.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawImpl()Draw to AdvantageScope unconditionally.doublegetDepth()Get penetration depth.doublegetXDir()Get penetration direction x component.doublegetYDir()Get penetration direction y component.voidsetDepth(double depth) Set penetration depth.voidsetNormal(double x, double y) Set penetration direction.
-
Constructor Details
-
Penetration
Result type forSeparatingAxis.
-
-
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:DrawableDraw to AdvantageScope unconditionally.
-