isequ = physics.Vect:eql(vec)
|
Parameter |
Type |
Description |
|---|---|---|
|
self |
in physics.Vect |
The input vector |
|
vec |
in physics.Vect |
The vector against which to compare with self |
|
isequ |
out boolean |
True if the components of self equal the components of vec |
Returns true if the x and y components of self equal those of vec. Take the usual precautions when comparing floating point numbers for equality.
The Vect class also implements the equal comparison operator (==). Therefore vectors v1 and v2 can be compared with the expression v1 == v2.
Introduced in platform.apiLevel = '2.0'