Class: App.ReturnValuesLongDocumentation

Defined in: spec/templates/methods/return_values_long.coffee
Inherits: App.Doc

Instance Method Summary

Instance Method Details

Number .compare(other)

Compares two Points.

Otherwise, returns 0.

Parameters:

  • (Point) otherThe {Point} to compare against

Returns:

  • (Number) — Returns a {Number} matching the following rules: * If the first `row` is greater than `other.row`, returns `1`. * If the first `row` is less than `other.row`, returns `-1`. * If the first `column` is greater than `other.column`, returns `1`. * If the first `column` is less than `other.column`, returns `-1`.