@sstorsveen/maths - v2.0.1
    Preparing search index...

    Module vec3

    vec3 is a collection of functions to manipulate Vec3 3-element vector objects.

    The primary use for a Vec3 object is in 3D geometry, as homogeneous coordinates in 2D geometry, or to represent e.g. RGB colours.

    Example usage:

    import * as vec3 from '@spissvinkel/maths/vec3';
    

    Functions

    of
    ofV
    zero
    one
    unitX
    unitY
    unitZ
    setZero
    setOne
    setUnitX
    setUnitY
    setUnitZ
    setV
    set
    addV
    addVInto
    subV
    subVInto
    addMul
    addMulInto
    mulV
    mulVInto
    mul
    mulInto
    pow
    powInto
    inv
    invInto
    sqrMag
    mag
    norm
    normInto
    normFor
    normForInto
    dot
    cross
    clampV
    clampVInto
    clamp
    clampInto
    clamp01
    clamp01Into
    lerp
    lerpE
    lerp2
    equals
    toString