From ae4bcefefc3ad6f04fbedd8bf49e9de1ab1b1a7d Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Wed, 1 May 2024 09:06:13 -0700 Subject: [PATCH] [wpimath] Fix incorrect docs for Rotation3d default constructor (#6571) A Rotation3d is not defined by one angle. --- .../src/main/java/edu/wpi/first/math/geometry/Rotation3d.java | 2 +- wpimath/src/main/native/include/frc/geometry/Rotation3d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation3d.java b/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation3d.java index 33fd34a3b2..d5031508a2 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation3d.java +++ b/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation3d.java @@ -30,7 +30,7 @@ public class Rotation3d implements Interpolatable, ProtobufSerializable, StructSerializable { private final Quaternion m_q; - /** Constructs a Rotation3d with a default angle of 0 degrees. */ + /** Constructs a Rotation3d representing no rotation. */ public Rotation3d() { m_q = new Quaternion(); } diff --git a/wpimath/src/main/native/include/frc/geometry/Rotation3d.h b/wpimath/src/main/native/include/frc/geometry/Rotation3d.h index 98abe007a8..bc01f2b8ee 100644 --- a/wpimath/src/main/native/include/frc/geometry/Rotation3d.h +++ b/wpimath/src/main/native/include/frc/geometry/Rotation3d.h @@ -20,7 +20,7 @@ namespace frc { class WPILIB_DLLEXPORT Rotation3d { public: /** - * Constructs a Rotation3d with a default angle of 0 degrees. + * Constructs a Rotation3d representing no rotation. */ Rotation3d() = default;