Package frc.lib.math
Class Rectangle
java.lang.Object
frc.lib.math.Rectangle
- All Implemented Interfaces:
ConvexShape,Drawable
Rotating Rectangle Shape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawImpl()Draw to AdvantageScope unconditionally.Axis[]getAxes()Get theaxesof thisConvexShape.Get the center of thisConvexShape.voidOverride rectangle pose.
-
Field Details
-
width
public final double width -
length
public final double length
-
-
Constructor Details
-
Rectangle
Rotating Rectangle 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
-
setPose
Override rectangle pose. -
drawImpl
public void drawImpl()Description copied from interface:DrawableDraw to AdvantageScope unconditionally.
-