@ue-too/math / index / Point
型別別名: Point
Point =
object
定義於: 2dVector.ts:17
Represents a 2D or 3D point with optional z-coordinate.
備註
When z is undefined, operations treat the point as 2D (z = 0). This type is used throughout the library for all point and vector operations.
範例
typescript
// 2D point
const p2d: Point = { x: 10, y: 20 };
// 3D point
const p3d: Point = { x: 10, y: 20, z: 30 };屬性
x
x:
number
定義於: 2dVector.ts:19
X-coordinate
y
y:
number
定義於: 2dVector.ts:21
Y-coordinate
z?
optionalz:number
定義於: 2dVector.ts:23
Optional Z-coordinate for 3D operations