Package frc.robot.math.geometry
Class Triangle2d
java.lang.Object
frc.robot.math.geometry.Triangle2d
2D triangle made up of 3 vertices.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRecord holding results of a call toclosestPoint(edu.wpi.first.math.geometry.Translation2d). -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate new Triangle2d. -
Method Summary
Modifier and TypeMethodDescriptionFinds closest point on triangle to a query point.doublesdf(Translation2d p) Evaluate signed distance function at a given point
-
Field Details
-
a
-
b
-
c
-
-
Constructor Details
-
Triangle2d
Create new Triangle2d.
-
-
Method Details
-
closestPoint
Finds closest point on triangle to a query point. -
sdf
Evaluate signed distance function at a given point
-