Module: Draught::Transformations::Common
- Included in:
- Affine, Composition, Proclike
- Defined in:
- lib/draught/transformations/common.rb
Instance Method Summary collapse
Instance Method Details
#affine? ⇒ Boolean
8 9 10 |
# File 'lib/draught/transformations/common.rb', line 8 def affine? raise NotImplementedError, "Classes including Transformations::Common must implement #affine?" end |
#call(point) ⇒ Object
4 5 6 |
# File 'lib/draught/transformations/common.rb', line 4 def call(point) raise NotImplementedError, "Classes including Transformations::Common must implement #call, taking a Point and returning a new, transformed, Point" end |
#to_transform ⇒ Object
12 13 14 |
# File 'lib/draught/transformations/common.rb', line 12 def to_transform self end |
#transforms ⇒ Object
16 17 18 |
# File 'lib/draught/transformations/common.rb', line 16 def transforms [self] end |