package Ġk y ber lib . math . units . extensions Ċ Ċ import Ġk y ber lib . math . units .* Ċ Ċ type alias ĠAngular Velocity Ġ= ĠK Unit < Div < Un itle ss , ĠSecond >> Ċ Ċ val ĠDouble . radians PerSecond Ġget () Ġ= ĠAngular Velocity ( this ) Ċ val ĠDouble . degrees PerSecond Ġget () Ġ= ĠAngular Velocity ( this Ġ* ĠAngle Conversions . degrees To Radians ) Ċ val ĠDouble . rpm Ġget () Ġ= ĠAngular Velocity ( this Ġ* ĠAngle Conversions . rot ations To Radians Ġ/ ĠTime Conversions . minutes To Seconds ) Ċ fun ĠDouble . encoder Velocity ( c pr : ĠInt ) Ġ= ĠAngular Velocity (( this Ġ/ Ġ( c pr Ġ* Ġ 4 . 0 )) Ġ* ĠAngle Conversions . rot ations To Radians Ġ* Ġ 1 0 ) Ċ Ċ val ĠNumber . radians PerSecond Ġget () Ġ= Ġto Double (). radians PerSecond Ċ val ĠNumber . degrees PerSecond Ġget () Ġ= Ġto Double (). degrees PerSecond Ċ val ĠNumber . rpm Ġget () Ġ= Ġto Double (). rpm Ċ fun ĠNumber . encoder Velocity ( c pr : ĠInt ) Ġ= Ġto Double (). encoder Velocity ( c pr ) Ċ Ċ val ĠAngular Velocity . radians PerSecond Ġget () Ġ= Ġvalue Ċ val ĠAngular Velocity . degrees PerSecond Ġget () Ġ= Ġvalue Ġ/ ĠAngle Conversions . degrees To Radians Ċ val ĠAngular Velocity . rpm Ġget () Ġ= Ġvalue Ġ* ĠTime Conversions . minutes To Seconds Ġ/ ĠAngle Conversions . rot ations To Radians Ċ fun ĠAngular Velocity . to Tang ential Velocity ( radius : ĠLength ) Ġ= ĠLinear Velocity ( value Ġ* Ġradius . value ) Ċ fun ĠAngular Velocity . encoder Velocity ( c pr : ĠInt ) Ġ= Ġ( value Ġ/ Ġ( Angle Conversions . rot ations To Radians Ġ* Ġ 1 0 )) Ġ* Ġ( c pr Ġ* Ġ 4 ) Ċ