Vector3

Stores a 3-dimensional vector.

Properties

    Vector3.x
    x value.

    Vector3.y
    y value.

    Vector3.z
    z value.

Functions

    Vector3.New(x, y, z)
    Creates a 3-dimensional vector.

    Vector3:Clone()
    Copies a 3-dimensional vector.

    Vector3.Distance(va, vb)
    Calculates distance between two points.

    Vector3.Max(lhs, rhs)
    Returns a vector with the largest module.

    Vector3.Min(lhs, rhs)
    Returns a vector with the smallest module.

    Vector3.Normalize(v)
    Unit vector.

    Vector3.Angle(from, to)
    Calculates the included angle of two vectors.

    Vector3.MoveTowards(current, target, maxDistanceDelta)
    Moves to the specified target.

    Vector3.RotateTowards(current, target, maxRadiansDelta, maxMagnitudeDelta)
    Rotates to the specified target.

    Vector3.AngleAroundAxis (from which point, to which point, axis)
    Calculates the included angle between the vector and an axis.