Quad Class Documentation

class Quad

Namespace:com::datalogics::PDFL

Detailed Description

Represents a quadrilateral in a program. A quadrilateral is a polygon graphic that has four sides or edges and four corners, Bottom Left, Bottom Right, Top Left, and Top Right.

Constructor & Destructor Documentation

Quad

Quad()

Creates a Quad with all points at the origin.

Quad

Quad(Point nTopLeft, Point nTopRight, Point nBottomLeft, Point nBottomRight)

Parameters

nTopLeft: Point

The top left corner of the Quad.

nTopRight: Point

The top right corner of the Quad.

nBottomLeft: Point

The bottom left corner of the Quad.

nBottomRight: Point

The bottom right corner of the Quad.

Creates a Quad from a set of 4 points.

Member Function Documentation

delete

synchronized void delete(Boolean disposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized void delete()

Returns:

synchronized void

equals

boolean equals(Object rhs)

Parameters

rhs: Object

Returns:

boolean

finalize

void finalize()

Returns:

void

getBottomLeft

Point getBottomLeft()

Returns:

Point

Bottom left corner of the Quad.

getBottomRight

Point getBottomRight()

Returns:

Point

Bottom right corner of the Quad.

getTopLeft

Point getTopLeft()

Returns:

Point

Top left corner of the Quad.

getTopRight

Point getTopRight()

Returns:

Point

Top right corner of the Quad.

toRect

Rect toRect()

Returns:

Rect

A Rect with the lower-left corner at BottomLeft and the upper-right corner at TopRight.

Returns a rectangle describing the same area as the quad.

toString

String toString()

Returns:

String

A string in the format "[ TopLeft=(...), TopRight=(...), BottomLeft=(...), BottomRight=(...) ]".

Returns a UTF-8 string representation of the quad by calling each point's ToString function.

transform

Quad transform(Matrix arg0)

Parameters

arg0: Matrix

The transformation matrix to apply to each point of the Quad.

Returns:

Quad

A new Quad with each point transformed by the given matrix.

Create a new quad from the results of a Transform on each point of the Quad.