point3.add

The point reached by moving a point along a vector.

Value helperSince 0.3.0

Usage

TypeScript
Point3.add(p: Point3, v: Vector3): Point3

Parameters

  • pPoint3

    The start point. Required. In model.

  • vVector3

    The displacement. Required. In model.

Returns

The point p + v; NaN when a coordinate is NaN or two infinities cancel.

Use instead

Example

TypeScript
Point3.add(Point3.of(1, 2, 3), Vector3.of(1, 0, 0)) // → { x: 2, y: 2, z: 3 }

See also