Class: SDC::FloatRect

Inherits:
Object
  • Object
show all
Defined in:
engine_docs/automatic_doc_FloatRect.rb,
engine_docs/automatic_doc_FloatRect.rb

Overview

Simple rectangle consisting of float valued boundaries

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left = 0.0, top = 0.0, width = 0.0, height = 0.0) ⇒ FloatRect

Creates a rectangle with given left top point, width and height

Parameters:

  • left (Float) (defaults to: 0.0)
  • top (Float) (defaults to: 0.0)
  • width (Float) (defaults to: 0.0)
  • height (Float) (defaults to: 0.0)


# File 'engine_docs/automatic_doc_FloatRect.rb', line 9

Instance Attribute Details

#heightFloat

Height of the rectangle

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_FloatRect.rb', line 22

#leftFloat

x coordinate of the left rectangle side

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_FloatRect.rb', line 26

#topFloat

y coordinate of the upper rectangle side

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_FloatRect.rb', line 30

#widthFloat

Width of the rectangle

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_FloatRect.rb', line 18