Class: Identity

measurer.Identity

  • (protected) new measurer.Identity() [source]

  • Identity measurer, a measurer for Cartesian coordinate system.
    Mixes From:

    Members

  • (static) measure :String

  • the code of the measurer
    Type:
    • String

  • (static) _rotate

  • Rotate a coordinate of given angle around pivot

    Static Methods

  • (static) measureLenBetween(c1, c2) [source]

  • Measure the length between 2 coordinates.
    Parameter Type Description
    c1 Coordinate
    c2 Coordinate
    Returns:
    Number:
  • (static) measureArea(coordinates) [source]

  • Measure the area closed by the given coordinates.
    Parameter Type Description
    coordinates Array.<Coordinate>
    Returns:
    number:
  • (static) _locate(c, xDist, yDist) [source]

  • Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance.
    Parameter Type Description
    c Coordinate source coordinate
    xDist Number x-axis distance
    yDist Number y-axis distance
    Returns:
    Coordinate:

    Methods

  • (mixin) measureLength(c1, c2) [source]

  • Measure length between coordinate c1 and coordinate c2
    Parameter Type Description
    c1 coordinate coordinate
    c2 coordinate coordinate
    Mixes From:
    Returns:
    Number: length