|
__init__(self,
x=0.0,
y=0.0,
z=0.0,
w=1.0,
scale=1.0,
rotation=0.0)
Create a point. |
source code
|
|
|
|
|
|
|
|
|
asArray(self,
homogenious=False)
returns the point data as a 4 element numpy array. |
source code
|
|
|
asVector2H(self)
Return a 2D homogenious vector [x,y,w] |
source code
|
|
|
asVector3H(self)
Return a 3D homogenious vector [x,y,z,w] |
source code
|
|
|
asOpenCV(self)
Return as a point compatible with OpenCV |
source code
|
|
|
|
|
asArray3D(self)
Return as an array of three elements. |
source code
|
|
|
asSpherical(self)
Computes and returns a representation of this point in spherical
coordinates: (r,phi,theta). |
source code
|
|
|
l2(self,
point)
Compute the Euclidian distance between two points. |
source code
|
|
|
unit(self)
Returns a vector in the same direction but of unit length. |
source code
|
|
|
magnitude(self)
Compute the magnitude of the point (distance from origin). |
source code
|
|
|
|
|
|
|
__mul__(self,
val)
Multiply the point by a value. |
source code
|
|
|
__rmul__(self,
val)
Multiply the point by a value. |
source code
|
|
|
__str__(self)
Return a string representing the point. |
source code
|
|
|
__repr__(self)
Return a string representing the point. |
source code
|
|