module Draught::Transformations::Common

Public Instance Methods

affine?() click to toggle source
# File lib/draught/transformations/common.rb, line 8
def affine?
  raise NotImplementedError, "Classes including Transformations::Common must implement #affine?"
end
call(point) click to toggle source
# 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() click to toggle source
# File lib/draught/transformations/common.rb, line 12
def to_transform
  self
end
transforms() click to toggle source
# File lib/draught/transformations/common.rb, line 16
def transforms
  [self]
end