identity static method

Vector2 identity()

Creates a new identity Vector2 (1.0, 1.0).

Implementation

static Vector2 identity() => Vector2.all(1.0);