Rectangle.fromPoints Method

Module: Rectangle

Definition

Creates a quadrangle from 4 points.

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 Face Library execution.