goulib.geom3d

3D geometry

Functions

Spherical(r, theta, phi)

_connect_line3_line3(A, B)

_connect_line3_plane(L, P)

_connect_plane_plane(A, B)

_connect_point3_line3(P, L)

_connect_point3_plane(p, plane)

_connect_point3_sphere(P, S)

_connect_sphere_line3(S, L)

Sphere/Line shortest joining segment :param S: Sphere :param L: Line :return: LineSegment3 of minimal length

_connect_sphere_plane(S, P)

_connect_sphere_sphere(A, B)

_intersect_line3_plane(L, P)

_intersect_line3_sphere(L, S)

_intersect_plane_plane(A, B)

Classes

Line3(*args)

A Line3 is a line on a 3D plane extending to infinity in both directions; a Ray3 has a finite end-point and extends to infinity in a single direction; a LineSegment3 joins two points.

Matrix4(*args)

Plane(*args)

Planes can be constructed with any of:

Point3(*args)

A point on a 3D plane. Construct in the obvious way::.

Quaternion([w, x, y, z])

A quaternion represents a three-dimensional rotation or reflection transformation.

Ray3(*args)

this constructor is called by descendant classes at copy it is replaced to copy some graphics attributes in module drawings

Segment3(*args)

this constructor is called by descendant classes at copy it is replaced to copy some graphics attributes in module drawings

Sphere(*args)

Spheres are constructed with a center Point3 and a radius.

Vector3(*args)

Mutable 3D Vector. See `Vector2`documentation.