safeDivideOrNull Method

Return a (new or optionally reused) vector which is this divided by denominator

  • return undefined if denominator is zero.

safeDivideOrNull(denominator: number, result?: Vector2d): Vector2d | undefined

Parameter Type Description
denominator number  
result Vector2d  

Returns - Vector2d | undefined

Defined in

Last Updated: 15 June, 2021