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

    Interface Vec3

    Vec3 is an interface for 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.

    The module vec3 contains functions to manipulate objects conforming to this interface

    Example usage:

    import { Vec3 } from '@spissvinkel/maths';
    
    interface Vec3 {
        x: number;
        y: number;
        z: number;
    }
    Index

    Properties

    x y z

    Properties

    x: number

    The first element

    y: number

    The second element

    z: number

    The third element