mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[wpimath] Rename FindNearestPoint() to Nearest() (#7513)
This is easier to type and follows the naming of Pose2d::Nearest(). Since Ellipse2d and Rectangle2d were added for the 2025 season, we don't need to add deprecation notices.
This commit is contained in:
@@ -9,7 +9,7 @@ public final class Ellipse2dJNI extends WPIMathJNI {
|
||||
/**
|
||||
* Returns the nearest point that is contained within the ellipse.
|
||||
*
|
||||
* <p>Constructs an Ellipse2d object and runs its FindNearestPoint() method.
|
||||
* <p>Constructs an Ellipse2d object and runs its nearest() method.
|
||||
*
|
||||
* @param centerX The x coordinate of the center of the ellipse in meters.
|
||||
* @param centerY The y coordinate of the center of the ellipse in meters.
|
||||
@@ -20,7 +20,7 @@ public final class Ellipse2dJNI extends WPIMathJNI {
|
||||
* @param pointY The y coordinate of the point that this will find the nearest point to.
|
||||
* @param nearestPoint Array to store nearest point into.
|
||||
*/
|
||||
public static native void findNearestPoint(
|
||||
public static native void nearest(
|
||||
double centerX,
|
||||
double centerY,
|
||||
double centerHeading,
|
||||
|
||||
Reference in New Issue
Block a user