Class Fz2D.Size

Defined in: src/scene/size.coffee

Overview

Public: Size

Instance Method Summary

Constructor Details

::constructor(w = 0, h = 0) Source

Public: Constructor. w - width (default: 0) h - height (default: 0)

Parameters:

  • wwidth (default: 0)
  • hheight (default: 0)

Instance Method Details

::equals(s) Source

Public: Compares size to another size. s - Fz2D.Size Returns the result of the comparison.

Parameters:

Returns:

  • Returns the result of the comparison.

::isNull() Source

Public: Returns true if the size is null, otherwise false.

::set(w, y) Source

Public: Sets the components of the point. w - width h - height

Parameters:

  • wwidth
  • hheight