|
|
|
near(self,
point,
distEps)
Returns:
true if the distance between self and
util.Point is less than distEps |
|
|
|
isNear(self,
point,
distEps)
Returns:
true if the distance between self and
util.Point is less than distEps |
|
|
|
distance(self,
point)
Returns:
Euclidean distance between self and
util.Point
|
|
|
|
magnitude(self)
Returns:
Magnitude of this point, interpreted as a vector in 2-space |
|
|
|
xyTuple(self)
Returns:
pair of x, y values |
|
|
|
|
|
angleTo(self,
p)
Returns:
angle in radians of vector from self to p |
|
|
|
add(self,
point)
Vector addition |
|
|
|
|
|
sub(self,
point)
Vector subtraction |
|
|
|
|
|
scale(self,
s)
Vector scaling |
|
|
|
|
|
|