#Best way to cast vec2 into vec3 with z field set to 0?

4 messages · Page 1 of 1 (latest)

grizzled kernel
#

Hey all, what's the most concise way to cast a vec2 into a vec3 with the z field set to zero?

#

atm I'm resorting to writing my own trait extension methods that convert a vec2 into a vec3 with one call.

robust kernel
novel spruce
#

Vec3 = Vec2.extend(0.)