Sha256: c9189b52b8a2c56f45074a1f3c7fb13c1c301f68f3f88153c7412ef1934eb4b0
Contents?: true
Size: 531 Bytes
Versions: 12
Compression:
Stored size: 531 Bytes
Contents
module IIIF::Image module Region # represents request cooridnates specified as percentage class Percent # @param x [Float] # @param y [Float] # @param width [Float] # @param height [Float] def initialize(x, y, width, height) @x_pct = x @y_pct = y @width_pct = width @height_pct = height end attr_reader :x_pct, :y_pct, :width_pct, :height_pct def to_s "pct:#{x_pct},#{y_pct},#{width_pct},#{height_pct}" end end end end
Version data entries
12 entries across 12 versions & 2 rubygems