redrield
06/14/2019, 8:02 PMhttps://0x0.st/zj-H.png▾
operator fun contains(p: Translation2d) = p.x in x..(x + w) && p.y in y..(y + h)
where all of the fields in use are Length, the inline class wrapping Doublekunalsheth
06/14/2019, 8:35 PMShawn
06/14/2019, 8:39 PMkunalsheth
06/14/2019, 8:52 PMfun <Q : Quan<Q>> box(x: Q) = x as Quan<Q>
redrield
06/14/2019, 9:07 PMilya.gorbunov
06/16/2019, 1:42 AM