menu
flame package
documentation
extensions.dart
Vector2Extension
isZero method
isZero method
dark_mode
light_mode
isZero
method
bool
isZero
(
)
Whether the
Vector2
is the zero vector or not
Implementation
bool
isZero() => x ==
0
&& y ==
0
;
flame package
documentation
extensions
Vector2Extension
isZero method
Vector2Extension extension on
Vector2
Methods
clamp
clampLength
invert
inverted
isIdentity
isZero
lerp
moveToTarget
projection
rotate
scaleTo
screenAngle
setAll
taxicabDistanceTo
toOffset
toPoint
toPositionedRect
toRect
toSize
toStringWithMaxPrecision
translate
translated
Operators
operator %
operator &
Static methods
fromDegrees
fromInts
fromRadians
identity