Rectangle.fromPoints Method

Module: Rectangle

Definition

Creates a quadrangle from 4 points.

@staticmethod
from_points(top_left: Point, top_right: Point, bottom_right: Point, bottom_left: Point) -> Rectangle

Parameters

top_left Point
in Top-left corner of the quadrangle.

top_right Point
in Top-right corner of the quadrangle.

bottom_right Point
in Bottom-right corner of the rectangle.

bottom_left Point
in Bottom-left corner of the rectangle.

Returns

The newly created rectangle.

Exceptions

An error has occurred during Finger Library execution.
static Rectangle fromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft)

Parameters

topLeft Point
in Top-left corner of the quadrangle.

topRight Point
in Top-right corner of the quadrangle.

bottomRight Point
in Bottom-right corner of the rectangle.

bottomLeft Point
in Bottom-left corner of the rectangle.

Returns

The newly created rectangle.

Exceptions

An error has occurred during Finger Library execution.
public static Rectangle FromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft)

Parameters

topLeft Point
in Top-left corner of the quadrangle.

topRight Point
in Top-right corner of the quadrangle.

bottomRight Point
in Bottom-right corner of the rectangle.

bottomLeft Point
in Bottom-left corner of the rectangle.

Returns

The newly created rectangle.

Exceptions

An error has occurred during Finger Library execution.
public static Rectangle fromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft) throws FingerException

Parameters

topLeft Point
in Top-left corner of the quadrangle.

topRight Point
in Top-right corner of the quadrangle.

bottomRight Point
in Bottom-right corner of the rectangle.

bottomLeft Point
in Bottom-left corner of the rectangle.

Returns

The newly created rectangle.

Exceptions

An error has occurred during Finger Library execution.
public static func fromPoints(topLeft: Point, topRight: Point, bottomRight: Point, bottomLeft: Point) throws -> Rectangle

Parameters

topLeft Point
in Top-left corner of the quadrangle.

topRight Point
in Top-right corner of the quadrangle.

bottomRight Point
in Bottom-right corner of the rectangle.

bottomLeft Point
in Bottom-left corner of the rectangle.

Returns

The newly created rectangle.

Exceptions

An error has occurred during Finger Library execution.
int id3FingerRectangle_FromPoints (
    ID3_FINGER_RECTANGLE hRectangle,
    const id3FingerPoint * sTopLeft,
    const id3FingerPoint * sTopRight,
    const id3FingerPoint * sBottomRight,
    const id3FingerPoint * sBottomLeft)

Parameters

in Handle to the Rectangle object.

in Top-left corner of the quadrangle.

in Top-right corner of the quadrangle.

in Bottom-right corner of the rectangle.

in Bottom-left corner of the rectangle.

Returns

int
An error code.
See id3FingerError file for the list of possible error codes.