Skip to content

Commit

Permalink
Format and editorconfig line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Jan 16, 2024
1 parent f701bb9 commit b2baa4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
###############################
# .NET Coding Conventions #
###############################
Expand Down
6 changes: 4 additions & 2 deletions src/wpimath/MathExtras.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace WPIMath;

public static class MathExtras {
public static class MathExtras
{
public static T Lerp<T>(T startValue, T endValue, double t) where T : IAdditionOperators<T, T, T>,
ISubtractionOperators<T, T, T>,
IMultiplyOperators<T, double, T> {
IMultiplyOperators<T, double, T>
{
return startValue + (endValue - startValue) * t;
}
}

0 comments on commit b2baa4f

Please sign in to comment.