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 TypeMethodDescriptionvoid
drawImpl()
Draw to AdvantageScope unconditionally.double
getDepth()
Get penetration depth.double
getXDir()
Get penetration direction x component.double
getYDir()
Get penetration direction y component.void
setDepth
(double depth) Set penetration depth.void
setNormal
(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:Drawable
Draw to AdvantageScope unconditionally.
-