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 TypeMethodDescriptionbooleanReturns true if `p` is inside this hexagon.voiddrawImpl()Draw to AdvantageScope unconditionally.Axis[]getAxes()Get theaxesof thisConvexShape.Get the center of thisConvexShape.
-
Constructor Details
-
Hexagon
A static hexagon shape.
-
-
Method Details
-
getAxes
Description copied from interface:ConvexShapeGet theaxesof thisConvexShape.- Specified by:
getAxesin interfaceConvexShape
-
project
Description copied from interface:ConvexShape- Specified by:
projectin interfaceConvexShape
-
getCenter
Description copied from interface:ConvexShapeGet the center of thisConvexShape.- Specified by:
getCenterin interfaceConvexShape
-
drawImpl
public void drawImpl()Description copied from interface:DrawableDraw to AdvantageScope unconditionally. -
contains
Returns true if `p` is inside this hexagon.
-