griffio
08/12/2018, 7:11 PMoperator fun Double.times(vec: Vec) = when (vec) {
is Vec2 -> vec.copy(this * vec.x, this * vec.y)
is Vec3 -> vec.copy(this * vec.x, this * vec.y, this * vec.z)
}
antoin_m
08/13/2018, 7:38 AMVec
and not a Vec2
or Vec3