Common Types
This page documents primitive types that are shared across multiple materials and descriptors in navara_three.
A class representing a 2D vector.
Constructor
Section titled “Constructor”new Vec2(x: number, y: number)Parameters:
x: X coordinate valuey: Y coordinate value
Properties
Section titled “Properties”Type: number
Description: X coordinate value.
Type: number
Description: Y coordinate value.
A plain object type representing a 3D vector or point.
type XYZ = { x: number; y: number; z: number };Properties
Section titled “Properties”Type: number
Description: X coordinate value.
Type: number
Description: Y coordinate value.
Type: number
Description: Z coordinate value.