Package frc.lib.math
Class Hexagon
java.lang.Object
frc.lib.math.Hexagon
- All Implemented Interfaces:
ConvexShape
,Drawable
A static hexagon shape.
-
Constructor Summary
ConstructorsConstructorDescriptionHexagon
(String name, Translation2d center, double radius, Rotation2d offset) A static hexagon shape. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if `p` is inside this hexagon.void
drawImpl()
Draw to AdvantageScope unconditionally.Axis[]
getAxes()
Get theaxes
of thisConvexShape
.Get the center of thisConvexShape
.
-
Constructor Details
-
Hexagon
A static hexagon shape.
-
-
Method Details
-
getAxes
Description copied from interface:ConvexShape
Get theaxes
of thisConvexShape
.- Specified by:
getAxes
in interfaceConvexShape
-
project
Description copied from interface:ConvexShape
- Specified by:
project
in interfaceConvexShape
-
getCenter
Description copied from interface:ConvexShape
Get the center of thisConvexShape
.- Specified by:
getCenter
in interfaceConvexShape
-
drawImpl
public void drawImpl()Description copied from interface:Drawable
Draw to AdvantageScope unconditionally. -
contains
Returns true if `p` is inside this hexagon.
-