point
- class granoo3.lib.point
Bases:
Boost.Python.instance
a class that model a point in the 3D space
Attributes Summary
x component
y component
z component
Methods Summary
compute_distance
(arg1, arg2)return the distance with another object
get_x
(arg1)get the x component
get_y
(arg1)get the y component
get_z
(arg1)get the z component
rotate
(arg1, arg2)rotate a point with the given offset quaternion
to_vector
(arg1)cast the point to a vector
translate
(arg1, arg2)translate the point with the given offset vector
Attributes Documentation
- x
x component
- y
y component
- z
z component
Methods Documentation
- compute_distance((point)arg1, (point)arg2) float[STATIC]
return the distance with another object
- get_x((point)arg1) float[STATIC]
get the x component
- get_y((point)arg1) float[STATIC]
get the y component
- get_z((point)arg1) float[STATIC]
get the z component
- rotate((point)arg1, (quaternion)arg2) None[STATIC]
rotate a point with the given offset quaternion
- translate((point)arg1, (vector)arg2) None[STATIC]
translate the point with the given offset vector