Package frc.robot.math
Class Penetration
java.lang.Object
frc.robot.math.Penetration
Result type for
SeparatingAxis.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDepth()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.
-