Represents a point in 3D space with optional x, y, and z coordinates. Each coordinate is a number and is optional, allowing for partial definitions.
Optional
// A point with all coordinates definedconst point: Point3D = { x: 10, y: 20, z: 30 }; Copy
// A point with all coordinates definedconst point: Point3D = { x: 10, y: 20, z: 30 };
// A point with only one coordinate definedconst point: Point3D = { x: 10 }; Copy
// A point with only one coordinate definedconst point: Point3D = { x: 10 };
// Default values are undefined for all coordinates.const point: Point3D = {}; Copy
// Default values are undefined for all coordinates.const point: Point3D = {};
Represents a point in 3D space with optional x, y, and z coordinates. Each coordinate is a number and is optional, allowing for partial definitions.