vecModelValidator
See source codeValidator for VecModel objects that ensures they have numeric x and y coordinates, with an optional z coordinate for 3D vectors. Used throughout the schema to validate point and vector data structures.
vecModelValidator: T.ObjectValidator<VecModel>
Example
const vector2D = { x: 10, y: 20 }
const isValid = vecModelValidator.check(vector2D) // true
const vector3D = { x: 10, y: 20, z: 30 }
const isValid3D = vecModelValidator.check(vector3D) // true
Prev
TLPOINTER_IDNext
videoShapeMigrations