vec3 [object]
- read-only properties
- [real] length
- [real] length_squared
- [vec3] normalized - return a vector with length = 1 if possible, length = 0 if too short
- [int] size - returns 3 - the number of components in this vector
- read/write properties
- [real] x
- [real] y
- [real] z
- overloaded operators
+
- adds two vec3/real values
-
- subtracts two vec3/real values
*
- multiplies two vec3/real values
/
- divides two vec3/real values
%
- returns modulo of two vec3/real values
- comparison between vec3 values: first by X, then by Y, then by Z
- unary
-
- returns negated vec3
- other features:
- cloning support
- serialization support
- GC-safe
- indexing support for indices 0 - 2: returns/sets the specified subvalue
- tostring, dump = "vec3(<x>;<y>;<z>)"