isAlmostEqualPointPlusScaledVector Method

Return true if this and {other + vector*scale} have equal x,y,z parts within Geometry.smallMetricDistance.

  • this method is useful in testing "point on ray" without explicitly constructing the projection point

isAlmostEqualPointPlusScaledVector(other: Readonly<WritableXYAndZ>, vector: Readonly<WritableXYAndZ>, scale: number, tol?: number): boolean

Parameter Type Description
other Readonly<WritableXYAndZ>  
vector Readonly<WritableXYAndZ>  
scale number  
tol number  

Returns - boolean

Defined in

Last Updated: 17 December, 2024