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): undefined | Vector2d

Parameter Type Description
denominator number  
result Vector2d  

Returns - undefined | Vector2d

Defined in

Last Updated: 12 June, 2024