Class: GLFW::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/glfw/stubs.rb

Overview

Descibes the location of an object in 2D space.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Creates a new instance of the GLFW::Point class.

Parameters:

  • x (Integer)

    The position on the x-axis.

  • y (Integer)

    The position on the y-axis.



211
212
# File 'lib/glfw/stubs.rb', line 211

def initialize(x, y)
end

Instance Attribute Details

#xInteger

Returns the position on the x-axis.

Returns:

  • (Integer)

    the position on the x-axis.



201
202
203
# File 'lib/glfw/stubs.rb', line 201

def x
  @x
end

#yInteger

Returns the position on the y-axis.

Returns:

  • (Integer)

    the position on the y-axis.



205
206
207
# File 'lib/glfw/stubs.rb', line 205

def y
  @y
end