mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-26 07:01:39 +00:00
Upgrading to 2025.1.2
This commit is contained in:
@@ -399,6 +399,10 @@ public class SwerveMath
|
||||
*/
|
||||
public static Translation2d cubeTranslation(Translation2d translation)
|
||||
{
|
||||
if (Math.hypot(translation.getX(), translation.getY()) <= 1.0E-6)
|
||||
{
|
||||
return translation;
|
||||
}
|
||||
return new Translation2d(Math.pow(translation.getNorm(), 3), translation.getAngle());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user