plane.pointAt

The world point at plane coordinates (u, v, w).

Value helperSince 0.3.0

Usage

TypeScript
Plane.pointAt(p: Plane, u: number, v: number, w?: number): Point3

Parameters

  • pPlane

    The plane, with orthonormal right-handed axes (as Plane.fromFrame and Plane.fromNormal build them). Required. In model.

  • unumber

    Distance along the x axis. Required. In model.

  • vnumber

    Distance along the y axis. Required. In model.

  • wnumber

    Distance along the normal. Default 0. In model.

Returns

The point origin + u·xAxis + v·yAxis + w·zAxis; NaN when a coordinate is NaN or two infinities cancel.

Example

TypeScript
Plane.pointAt(Plane.worldZX, 1, 2) // → { x: 2, y: 0, z: 1 }

See also