Skip to content

format

typescript
Vector2.infinity

class: Vector2

description

(Read Only) Returns a Vector2 object representing positive infinity. In this object, both the x and y components are set to Infinity.

parameter

param_nametypedescription

return

typedescription
Vector2

code example

typescript
let infinity_v2 = Vector2.infinity;