class

CrImage::Math::Fixed::Point52_12

Inherits Reference / Object

Point52_12 is a 52.12 fixed-point coordinate pair. It is analogous to the CrImage::Point

Constructors

new(x : Number, y : Number)
Source

Class methods

zero
Source

Instance methods

*(o : Point52_12)
Source
+(o : Point52_12)
Source
-(o : Point52_12)
Source
/(o : Point52_12)
Source
==(o : Point52_12)
Source
in(r : Rectangle52_12) : Bool

reports whether point is in Rectangle r

Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
x=(x : Int52_12)
Source
y=(y : Int52_12)
Source