PVector class
Constructors
- PVector(num x, num y)
- PVector.deg0()
-
factory
- PVector.deg135()
-
factory
- PVector.deg180()
-
factory
- PVector.deg225()
-
factory
- PVector.deg270()
-
factory
- PVector.deg315()
-
factory
- PVector.deg45()
-
factory
- PVector.deg90()
-
factory
- PVector.fromAngle(double radians)
-
factory
- PVector.random2D({int? seed})
-
factory
Properties
-
array
→ List<
num> -
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- heading → num
-
no setter
- mag ↔ num
-
getter/setter pair
- magSq → num
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x ↔ num
-
getter/setter pair
- y ↔ num
-
getter/setter pair
Methods
-
add(
PVector other) → void -
copy(
) → PVector -
cross(
PVector other) → PVector -
dist(
PVector other) → num -
div(
num scalar) → void -
dot(
PVector other) → num -
limit(
num magnitude) → void -
mult(
num scalar) → void -
normalize(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotate(
num radians) → void -
set(
num x, num y) → void -
sub(
PVector other) → void -
toOffset(
) → Offset -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
num scalar) → PVector -
operator +(
PVector other) → PVector -
operator -(
PVector other) → PVector -
operator /(
num scalar) → PVector -
operator ==(
Object other) → bool -
The equality operator.
override