Package frc.robot.math
Class Rectangle
java.lang.Object
frc.robot.math.Rectangle
- All Implemented Interfaces:
ConvexShape
Rotating Rectangle Shape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAxis[]getAxes()Get theaxesof thisConvexShape.Get the center of thisConvexShape.booleansees if a rectangle is inside anothervoidOverride 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. -
isInside
sees if a rectangle is inside another- Parameters:
rect- outside rectangle- Returns:
- boolean true if inside
-