honeybee.vectormath.euclid module
euclid graphics maths module
Documentation and tests are included in the file “euclid.txt”, or online
at http://code.google.com/p/pyeuclid
-
class
honeybee.vectormath.euclid.Circle(center, radius)[source]
Bases: honeybee.vectormath.euclid.Geometry, object
-
c
-
connect(other)[source]
-
copy()
-
intersect(other)[source]
-
r
-
class
honeybee.vectormath.euclid.Geometry[source]
Bases: object
-
connect(other)[source]
-
distance(other)[source]
-
intersect(other)[source]
-
class
honeybee.vectormath.euclid.Line2(*args)[source]
Bases: honeybee.vectormath.euclid.Geometry, object
-
connect(other)[source]
-
copy()
-
intersect(other)[source]
-
p
-
p1
-
p2
-
v
-
class
honeybee.vectormath.euclid.Line3(*args)[source]
Bases: object
-
connect(other)[source]
-
copy()
-
intersect(other)[source]
-
p
-
p1
-
p2
-
v
-
class
honeybee.vectormath.euclid.LineSegment2(*args)[source]
Bases: honeybee.vectormath.euclid.Line2, object
-
length
-
magnitude_squared()[source]
-
class
honeybee.vectormath.euclid.LineSegment3(*args)[source]
Bases: honeybee.vectormath.euclid.Line3, object
-
length
-
magnitude_squared()[source]
-
class
honeybee.vectormath.euclid.Matrix3[source]
Bases: object
-
a
-
b
-
c
-
copy()
-
determinant()[source]
-
e
-
f
-
g
-
i
-
identity()[source]
-
inverse()[source]
-
j
-
k
-
classmethod
new_identity()[source]
-
classmethod
new_rotate(angle)[source]
-
classmethod
new_scale(x, y)[source]
-
classmethod
new_translate(x, y)[source]
-
rotate(angle)[source]
-
scale(x, y)[source]
-
translate(x, y)[source]
-
class
honeybee.vectormath.euclid.Matrix4[source]
Bases: object
-
a
-
b
-
c
-
copy()
-
d
-
determinant()[source]
-
e
-
f
-
g
-
h
-
i
-
identity()[source]
-
inverse()[source]
-
j
-
k
-
l
-
m
-
n
-
classmethod
new(*values)[source]
-
classmethod
new_identity()[source]
-
classmethod
new_look_at(eye, at, up)[source]
-
classmethod
new_perspective(fov_y, aspect, near, far)[source]
-
classmethod
new_rotate_axis(angle, axis)[source]
-
classmethod
new_rotate_euler(heading, attitude, bank)[source]
-
classmethod
new_rotate_triple_axis(x, y, z)[source]
-
classmethod
new_rotatex(angle)[source]
-
classmethod
new_rotatey(angle)[source]
-
classmethod
new_rotatez(angle)[source]
-
classmethod
new_scale(x, y, z)[source]
-
classmethod
new_translate(x, y, z)[source]
-
o
-
p
-
rotate_axis(angle, axis)[source]
-
rotate_euler(heading, attitude, bank)[source]
-
rotate_triple_axis(x, y, z)[source]
-
rotatex(angle)[source]
-
rotatey(angle)[source]
-
rotatez(angle)[source]
-
scale(x, y, z)[source]
-
transform(other)[source]
-
translate(x, y, z)[source]
-
transpose()[source]
-
transposed()[source]
-
class
honeybee.vectormath.euclid.Plane(*args)[source]
Bases: object
-
connect(other)[source]
-
copy()
-
intersect(other)[source]
-
k
-
n
-
class
honeybee.vectormath.euclid.Point2(x=0, y=0)[source]
Bases: honeybee.vectormath.euclid.Vector2, honeybee.vectormath.euclid.Geometry, object
-
connect(other)[source]
-
intersect(other)[source]
-
class
honeybee.vectormath.euclid.Point3(x=0, y=0, z=0)[source]
Bases: honeybee.vectormath.euclid.Vector3, honeybee.vectormath.euclid.Geometry, object
-
connect(other)[source]
-
intersect(other)[source]
-
class
honeybee.vectormath.euclid.Quaternion(w=1, x=0, y=0, z=0)[source]
Bases: object
-
conjugated()[source]
-
copy()
-
get_angle_axis()[source]
-
get_euler()[source]
-
get_matrix()[source]
-
identity()[source]
-
magnitude()
-
magnitude_squared()[source]
-
classmethod
new_identity()[source]
-
classmethod
new_interpolate(q1, q2, t)[source]
-
classmethod
new_rotate_axis(angle, axis)[source]
-
classmethod
new_rotate_euler(heading, attitude, bank)[source]
-
classmethod
new_rotate_matrix(m)[source]
-
normalize()[source]
-
normalized()[source]
-
rotate_axis(angle, axis)[source]
-
rotate_euler(heading, attitude, bank)[source]
-
rotate_matrix(m)[source]
-
w
-
x
-
y
-
z
-
class
honeybee.vectormath.euclid.Ray2(*args)[source]
Bases: honeybee.vectormath.euclid.Line2, object
-
class
honeybee.vectormath.euclid.Ray3(*args)[source]
Bases: honeybee.vectormath.euclid.Line3, object
-
class
honeybee.vectormath.euclid.Sphere(center, radius)[source]
Bases: object
-
c
-
connect(other)[source]
-
copy()
-
intersect(other)[source]
-
r
-
class
honeybee.vectormath.euclid.Vector2(x=0, y=0)[source]
Bases: object
-
angle(other)[source]
Return the angle to the vector other
-
copy()
-
cross()[source]
-
dot(other)[source]
-
magnitude()
-
magnitude_squared()[source]
-
normalize()[source]
-
normalized()[source]
-
project(other)[source]
Return one vector projected on the vector other
-
reflect(normal)[source]
-
x
-
y
-
class
honeybee.vectormath.euclid.Vector3(x=0, y=0, z=0)[source]
Bases: object
-
X
Return x value.
-
Y
Return y value.
-
Z
Return z value.
-
angle(other)[source]
Return the angle to the vector other
-
copy()
-
cross(other)[source]
-
dot(other)[source]
-
flip()[source]
Flip vector
-
flipped()[source]
Return flipped vector
-
magnitude()
-
magnitude_squared()[source]
-
normalize()[source]
-
normalized()[source]
-
project(other)[source]
Return one vector projected on the vector other
-
reflect(normal)[source]
-
rotate_around(axis, theta)[source]
Return the vector rotated around axis through angle theta.
Right hand rule applies.
-
x
-
y
-
z