Vector class, which performs basic 3D vector math operations.
Vector3 is one of the core classes of the engine, and includes several built-in helper functions to perform basic vector math operations.
http://docs.godotengine.org/en/3.0/tutorials/math/index.html
Returns a Vector3 with the given components.
Returns a new vector with all components in absolute values (i.e. positive).
Returns the minimum angle to the given vector.
Returns the vector "bounced off" from a plane defined by the given normal.
Returns a new vector with all components rounded up.
Returns the cross product with [code]b[/code].
Performs a cubic interpolation between vectors [code]pre_a[/code], [code]a[/code], [code]b[/code], [code]post_b[/code] ([code]a[/code] is current), by the given amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation.
Returns the squared distance to [code]b[/code]. Prefer this function over [method distance_to] if you need to sort vectors or need the squared distance for some formula.
Returns the distance to [code]b[/code].
Returns the dot product with [code]b[/code].
Returns a new vector with all components rounded down.
Returns the inverse of the vector. This is the same as [code]Vector3( 1.0 / v.x, 1.0 / v.y, 1.0 / v.z )[/code].
Returns [code]true[/code] if the vector is normalized.
Returns the vector's length.
Returns the vector's length squared. Prefer this function over [method length] if you need to sort vectors or need the squared length for some formula.
Returns the result of the linear interpolation between this vector and [code]b[/code] by amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation..
Returns the axis of the vector's largest value. See [code]AXIS_*[/code] constants.
Returns the axis of the vector's smallest value. See [code]AXIS_*[/code] constants.
Returns the vector scaled to unit length. Equivalent to [code]v / v.length()[/code].
Returns the outer product with [code]b[/code].
Returns the vector projected onto the vector [code]b[/code].
Returns the vector reflected from a plane defined by the given normal.
Rotates the vector around a given axis by [code]phi[/code] radians. The axis must be a normalized vector.
Returns the vector with all components rounded to the nearest integer, with halfway cases rounded away from zero.
Returns the result of SLERP between this vector and [code]b[/code], by amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation.
Both vectors need to be normalized.
Returns the component of the vector along a plane defined by the given normal.
Returns a copy of the vector, snapped to the lowest neared multiple.
Returns a diagonal matrix with the vector as main diagonal.
The vector's x component. Also accessible by using the index position [code][0][/code].
The vector's y component. Also accessible by using the index position [code][1][/code].
The vector's z component. Also accessible by using the index position [code][2][/code].
Enumerated value for the X axis. Returned by [method max_axis] and [method min_axis].
Enumerated value for the Y axis.
Enumerated value for the Z axis.
Zero vector.
One vector.
Infinite vector.
Left unit vector.
Right unit vector.
Up unit vector.
Down unit vector.
Forward unit vector.
Back unit vector.