Defines all necessary vectors/quaternions to compute a 3D model matrix based on a DOM HTMLElement

interface DOMObject3DTransforms {
    quaternion: Quat;
    rotation: Vec3;
    scale: Vec3;
    origin: {
        model: Vec3;
        world: Vec3;
    };
    position: {
        world: Vec3;
        document: Vec3;
    };
}

Hierarchy

Properties

quaternion: Quat

Model quaternion defining its rotation in 3D space

rotation: Vec3

Model rotation vector used to compute its quaternion

scale: Vec3

Model 3D scale vector

origin: {
    model: Vec3;
    world: Vec3;
}

Transformation origin object

Type declaration

position: {
    world: Vec3;
    document: Vec3;
}

Position object

Type declaration

  • world: Vec3

    Position vector relative to the 3D world

  • document: Vec3

    Additional translation vector relative to the DOM document