Skip to content

Commit

Permalink
wpimath: Specialise the Rotation2d constructor to radians
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Feb 16, 2024
1 parent fd0952d commit 18bc461
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ classes:
Rotation2d:
overloads:
'[constexpr]':
units::radian_t [constexpr]:
units::degree_t [constexpr]:
ignore: true
auto [constexpr]:
doc: |
Constructs a Rotation2d with the given radian value.
:param value: The value of the angle in radians.
param_override:
value:
x_type: 'units::radian_t'
template_impls:
- ['units::radian_t']
double, double [constexpr]:
RotateBy:
Radians:
Expand Down

0 comments on commit 18bc461

Please sign in to comment.