[wpiunits] Add Measure.divide(Measure<U2>) (#6611)

This commit is contained in:
Wispy
2024-05-15 08:22:38 -05:00
committed by GitHub
parent b0d3bf4ddf
commit 7fbbecb5b7
5 changed files with 75 additions and 11 deletions

View File

@@ -109,6 +109,15 @@ public class Per<N extends Unit<N>, D extends Unit<D>> extends Unit<Per<N, D>> {
return m_denominator;
}
/**
* Returns the reciprocal of this Per.
*
* @return the reciprocal
*/
public Per<D, N> reciprocal() {
return m_denominator.per(m_numerator);
}
@Override
public boolean equals(Object o) {
if (this == o) {