Helpful
    Preparing search index...

    Represents a helper object that can run calculations on a numeric quadrilateral.

    Index

    Constructors

    Properties

    bottomCenter: (...args: []) => IZPoint2d = ...

    Calculates the bottom center point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The bottom center point of the rectangle.

    bottomLeft: (...args: []) => IZPoint2d = ...

    Calculates the bottom left point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The bottom left point of the rectangle.

    bottomRight: (...args: []) => IZPoint2d = ...

    Calculates the bottom right point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The bottom right point of the rectangle.

    middleCenter: (...args: []) => IZPoint2d = ...

    Calculates the middle center point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The middle center point of the rectangle.

    middleLeft: (...args: []) => IZPoint2d = ...

    Calculates the middle left point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The middle left point of the rectangle.

    middleRight: (...args: []) => IZPoint2d = ...

    Calculates the middle right point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The middle right point of the rectangle.

    The numeric sides of a quadrilateral.

    topCenter: (...args: []) => IZPoint2d = ...

    Calculates the top center point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The top center point of the rectangle.

    topLeft: (...args: []) => IZPoint2d = ...

    Calculates the top left point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The top left point of the rectangle.

    topRight: (...args: []) => IZPoint2d = ...

    Calculates the top right point of the rectangle.

    Type Declaration

      • (...args: []): IZPoint2d
      • Parameters

        • ...args: []

        Returns IZPoint2d

        The top right point of the rectangle.

    Methods

    • Takes the candidate quadrilateral and adjusts it's coordinates to fit inside this rectangle.

      This is done by shifting the rectangle left, right, up, and down to make sure it is bounded inside.

      If the candidate width or height is larger than this rectangle, thus it cannot fit, then the candidate will be centered on the dimension where it is too big to fit.

      Parameters

      Returns IZQuadrilateral

      A new quadrilateral that offsets candidate so that it can fit inside this rectangle.