Skip to content

Commit

Permalink
Refactor collections (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-mue authored Oct 22, 2023
1 parent 7918aa1 commit f2cbe35
Show file tree
Hide file tree
Showing 13 changed files with 1,103 additions and 611 deletions.
39 changes: 28 additions & 11 deletions geometer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from geometer.__version__ import __version__
from geometer.curve import Circle, Cone, Conic, Cylinder, Ellipse, Quadric, Sphere
from geometer.curve import Circle, Cone, Conic, Cylinder, Ellipse, Quadric, QuadricCollection, Sphere
from geometer.operators import (
angle,
angle_bisectors,
Expand All @@ -12,22 +12,39 @@
is_coplanar,
is_perpendicular,
)
from geometer.point import I, J, Line, Plane, Point, infty, infty_plane, join, meet
from geometer.shapes import Cuboid, Polygon, Polyhedron, Polytope, Rectangle, RegularPolygon, Segment, Simplex, Triangle
from geometer.point import (
I,
J,
Line,
LineCollection,
Plane,
PlaneCollection,
Point,
PointCollection,
infty,
infty_plane,
join,
meet,
)
from geometer.shapes import (
Cuboid,
Polygon,
PolygonCollection,
Polyhedron,
Rectangle,
RegularPolygon,
Segment,
SegmentCollection,
Simplex,
Triangle,
)
from geometer.transformation import (
Transformation,
TransformationCollection,
affine_transform,
identity,
reflection,
rotation,
scaling,
translation,
)

PointCollection = Point
LineCollection = Line
PlaneCollection = Plane
QuadricCollection = Quadric
TransformationCollection = Transformation
SegmentCollection = Segment
PolygonCollection = Polygon
Loading

0 comments on commit f2cbe35

Please sign in to comment.