lib/geometry.rb in geometry-5 vs lib/geometry.rb in geometry-6

- old
+ new

@@ -1,52 +1,21 @@ require_relative 'geometry/arc' require_relative 'geometry/circle' require_relative 'geometry/line' +require_relative 'geometry/obround' require_relative 'geometry/path' require_relative 'geometry/point' require_relative 'geometry/point_zero' require_relative 'geometry/polygon' require_relative 'geometry/polyline' require_relative 'geometry/rectangle' +require_relative 'geometry/regular_polygon' require_relative 'geometry/rotation' require_relative 'geometry/size' require_relative 'geometry/size_zero' require_relative 'geometry/square' require_relative 'geometry/transformation' require_relative 'geometry/triangle' require_relative 'geometry/vector' module Geometry - # @overload Line(array0, array1) - # @param [Array] array0 First endpoint - # @param [Array] array1 Second endpoint - # @return [TwoPointLine] - # @overload Line(point0, point1) - # @param [Point] point0 First endpoint - # @param [Point] point1 Second endpoint - # @return [TwoPointLine] - # @overload Line(vector0, vector1) - # @param [Vector] vector0 First endpoint - # @param [Vector] vector1 Second endpoint - # @return [TwoPointLine] - # @overload Line(y_intercept, slope) - # @param [Numeric] y_intercept Y-intercept - # @param [Numeric] slope Slope - # @return [SlopeInterceptLine] - # @overload Line(point, slope) - # @param [Point] point Starting point - # @param [Numeric] slope Slope - # @return [PointSlopeLine] - def self.line(*args) - Line[*args] - end - - # @overload Point(x,y,z,...) - # @return [Point] - # @overload Point(Point) - # @return [Point] - # @overload Point(Vector) - # @return [Point] - def self.point(*args) - Point[*args] - end end