honeybee_plus.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_plus.vectormath.euclid.Circle(center, radius)[source]

Bases: honeybee_plus.vectormath.euclid.Geometry

c
connect(other)[source]
copy()
intersect(other)[source]
r
class honeybee_plus.vectormath.euclid.Geometry[source]

Bases: object

connect(other)[source]
distance(other)[source]
intersect(other)[source]
class honeybee_plus.vectormath.euclid.Line2(*args)[source]

Bases: honeybee_plus.vectormath.euclid.Geometry

connect(other)[source]
copy()
intersect(other)[source]
p
property p1
property p2
v
class honeybee_plus.vectormath.euclid.Line3(*args)[source]

Bases: object

connect(other)[source]
copy()
intersect(other)[source]
p
property p1
property p2
v
class honeybee_plus.vectormath.euclid.LineSegment2(*args)[source]

Bases: honeybee_plus.vectormath.euclid.Line2

property length
magnitude_squared()[source]
p
v
class honeybee_plus.vectormath.euclid.LineSegment3(*args)[source]

Bases: honeybee_plus.vectormath.euclid.Line3

property length
magnitude_squared()[source]
p
v
class honeybee_plus.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_plus.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_plus.vectormath.euclid.Plane(*args)[source]

Bases: object

connect(other)[source]
copy()
intersect(other)[source]
k
n
class honeybee_plus.vectormath.euclid.Point2(x=0, y=0)[source]

Bases: honeybee_plus.vectormath.euclid.Vector2, honeybee_plus.vectormath.euclid.Geometry

connect(other)[source]
intersect(other)[source]
x
y
class honeybee_plus.vectormath.euclid.Point3(x=0, y=0, z=0)[source]

Bases: honeybee_plus.vectormath.euclid.Vector3, honeybee_plus.vectormath.euclid.Geometry

connect(other)[source]
intersect(other)[source]
x
y
z
class honeybee_plus.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_plus.vectormath.euclid.Ray2(*args)[source]

Bases: honeybee_plus.vectormath.euclid.Line2

p
v
class honeybee_plus.vectormath.euclid.Ray3(*args)[source]

Bases: honeybee_plus.vectormath.euclid.Line3

p
v
class honeybee_plus.vectormath.euclid.Sphere(center, radius)[source]

Bases: object

c
connect(other)[source]
copy()
intersect(other)[source]
r
class honeybee_plus.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_plus.vectormath.euclid.Vector3(x=0, y=0, z=0)[source]

Bases: object

property X

Return x value.

property Y

Return y value.

property 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