-
Notifications
You must be signed in to change notification settings - Fork 0
class_vector3
####Category: Built-In Types
Vector class, which performs basic 3D vector math operations.
-
Vector3
abs
( ) -
Vector3
cross
( Vector3 b ) -
Vector3
cubic_interpolate
( Vector3 b, Vector3 pre_a, Vector3 post_b, real t ) -
real
distance_squared_to
( Vector3 b ) -
real
distance_to
( Vector3 b ) -
real
dot
( Vector3 b ) -
Vector3
inverse
( ) -
real
length
( ) -
real
length_squared
( ) -
Vector3
linear_interpolate
( Vector3 b, real t ) -
int
max_axis
( ) -
int
min_axis
( ) -
Vector3
normalized
( ) -
Vector3
rotated
( Vector3 axis, real phi ) -
Vector3
snapped
( real by ) - void
Vector3
( real x, real y, real z )
- AXIS_X = 0
- AXIS_Y = 1
- AXIS_Z = 2
Vector3 is one of the core classes of the engine, and includes several built-in helper functions to perform basic vecor math operations.
Return the cross product with b.
Perform a cubic interpolation between vectors a,b,c,d (b is current), by the given amount (i).
Return the squared distance (distance minus the last square root) to b.
Return the distance to b.
Return the dot product with b.
-
Vector3
inverse
( )
Returns the inverse of the vector. this is the same as Vector3( 1.0 / v.x, 1.0 / v.y, 1.0 / v.z )
-
real
length
( )
Return the length of the vector.
-
real
length_squared
( )
Return the length of the vector, without the square root step.
Linearly interpolates the vector to a given one (b), by the given amount (i)
-
Vector3
normalized
( )
Return a copy of the normalized vector to unit length. This is the same as v / v.length()
Return a copy of the vector, snapped to the lowest neared multiple.