Class: TD::Types::Point

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/point.rb

Overview

A point on a Cartesian plane.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#xFloat

The point’s first coordinate.

Returns:

  • (Float)

    the current value of x



6
7
8
# File 'lib/tdlib/types/point.rb', line 6

def x
  @x
end

#yFloat

The point’s second coordinate.

Returns:

  • (Float)

    the current value of y



6
7
8
# File 'lib/tdlib/types/point.rb', line 6

def y
  @y
end