2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
utils Namespace Reference

Functions

constexpr frc::Translation3d ReflectFieldPoint (const frc::Translation3d source)
 Reflects the point source over the middle of the field to get equivelent points accross the field.
 
constexpr frc::Translation2d ReflectFieldPoint (const frc::Translation2d source)
 
constexpr units::angle::degree_t ReflectAngle (const units::angle::degree_t sourceAngle)
 
template<class T >
std::vector< T > ReflectFieldPoint (const std::vector< T > source)
 
constexpr frc::Spline< 3 >::ControlVector ReflectFieldPoint (const frc::Spline< 3 >::ControlVector source)
 
frc::Pose2d ReflectFieldPoint (const frc::Pose2d source)
 
constexpr units::inch_t ReflectYLine (const units::inch_t source)
 

Function Documentation

◆ ReflectAngle()

constexpr units::angle::degree_t utils::ReflectAngle ( const units::angle::degree_t  sourceAngle)
constexpr

◆ ReflectFieldPoint() [1/5]

frc::Pose2d utils::ReflectFieldPoint ( const frc::Pose2d  source)

◆ ReflectFieldPoint() [2/5]

constexpr frc::Spline< 3 >::ControlVector utils::ReflectFieldPoint ( const frc::Spline< 3 >::ControlVector  source)
constexpr

◆ ReflectFieldPoint() [3/5]

constexpr frc::Translation2d utils::ReflectFieldPoint ( const frc::Translation2d  source)
constexpr

◆ ReflectFieldPoint() [4/5]

constexpr frc::Translation3d utils::ReflectFieldPoint ( const frc::Translation3d  source)
constexpr

Reflects the point source over the middle of the field to get equivelent points accross the field.

Parameters
sourceThe point to reflect
Returns
The reflected point accross the middle of the field

◆ ReflectFieldPoint() [5/5]

template<class T >
std::vector< T > utils::ReflectFieldPoint ( const std::vector< T >  source)

◆ ReflectYLine()

constexpr units::inch_t utils::ReflectYLine ( const units::inch_t  source)
constexpr