Skip to main content

Function: isOpposite()

isOpposite(v1, v2, tolerance): boolean

returns equal if the two vec3s are opposite within the given tolerance in each dimension.

Parameters​

• v1: Point3

The first 3 vector

• v2: Point3

The second 3 vector.

• tolerance: number = 1e-5

The acceptable tolerance.

Returns​

boolean

True if the two values are within the tolerance levels.

Defined in​

packages/core/src/utilities/isOpposite.ts:13