Read 2 or 3 numbers and return them as a Vec3

If there is no third value, Vec3::z is set to 0.0.

Property definitions

gamnit :: model_parser_base $ StringProcessor :: read_vec3
	# Read 2 or 3 numbers and return them as a `Vec3`
	#
	# If there is no third value, `Vec3::z` is set to 0.0.
	protected fun read_vec3: Vec3
	do
		var vec = new Vec3
		vec.x = read_number
		vec.y = read_number # Make optional

		var wstr = read_token
		if wstr.length > 0 then
			vec.z = if wstr.is_numeric then wstr.to_f else 0.0
		else
			vec.z = 0.0
		end

		return vec
	end
lib/gamnit/model_parsers/model_parser_base.nit:124,2--141,4