Package frc.robot.math
Class Hexagon
java.lang.Object
frc.robot.math.Hexagon
- All Implemented Interfaces:
ConvexShape
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.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
-
contains
Returns true if `p` is inside this hexagon.
-