3#include <frc/geometry/Rotation2d.h>
16 frc::Rotation2d target) : m_position(waypointRelativePosition), m_target(
42 constexpr const frc::Rotation2d&
getTarget()
const {
47 return std::abs(m_position - other.m_position) < 1E-9
48 && m_target == other.m_target;
53 frc::Rotation2d m_target;
Definition: RotationTarget.h:7
static RotationTarget fromJson(const wpi::json &json)
Definition: RotationTarget.cpp:6
constexpr RotationTarget(double waypointRelativePosition, frc::Rotation2d target)
Definition: RotationTarget.h:15
constexpr const frc::Rotation2d & getTarget() const
Definition: RotationTarget.h:42
constexpr double getPosition() const
Definition: RotationTarget.h:33