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 TypeMethodDescriptionvoid
drawImpl()
Draw to AdvantageScope unconditionally.Axis[]
getAxes()
Get theaxes
of thisConvexShape
.Get the center of thisConvexShape
.void
Override 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: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
-
setPose
Override rectangle pose. -
drawImpl
public void drawImpl()Description copied from interface:Drawable
Draw to AdvantageScope unconditionally.
-