TypeLibF Xojo Plugin

PolygonF Class (console safe)

This class defines a Polygon structure that uses floating point precision.

Object
   PolygonF

class PolygonF

Constructors

PolygonFThe default constructor for the PolygonF class.
PolygonFConstructs a PolygonF from a given RectF class instance.

Properties

Clone (console safe) Returns a clone of the PoligonF.
CornerCount (console safe) Returns count of points in the polygon.

Methods

Add (console safe) Adds a point to the polygon.
Add (console safe) Adds a point to the polygon.
Area (console safe) Returns the size of the area of the polygon.
Bounds (console safe) Returns the boundaries for the Polygon as a RectF rectangle.
Contains (console safe) Returns true if the given x and y coordinates are within the polygon.
Contains (console safe) Returns true if the given point is within the polygon.
Draw (console safe) Draws the polygon into a Graphics context with the current color of the Graphics context.
DrawPath (console safe) Draws the polygon as a path into a Graphics context with the current color of the Graphics context.
Fill (console safe) Fills the polygon into a Graphics context with the current color of the Graphics context.
FindCentroid (console safe) Finds centroid of the polygon.
HitTestCorners (console safe) Returns the number of the corner that was clicked or zero if no corner was clicked.
Inset (console safe) Shrinks or expands a polygon by given distance.
Intersects (console safe) Returns true if the polygon intersects with a given line.
Intersects (console safe) Returns true if the polygon intersects with the other given polygon.
Offset (console safe) Moves the polygon
Offset (console safe) Moves the polygon
PointX (console safe) Reads or writes a point's x coordinate in the Polygon.
PointY (console safe) Reads or writes a point's y coordinate in the Polygon.
Rotate (console safe) Rotates the polygon around its estimated center point.
Rotate (console safe) Rotates the polygon in a coordinate system around one of the polygons points.
Rotate (console safe) Rotates the polygon in a coordinate system around a defined center point.
Scale (console safe) Scales the Polygon
Scale (console safe) Scales the Polygon, pinning certain point.
VecNorm (console safe) Returns a new polygon that has same structure but is positioned at (0.0 , 0.0) in the coordinate system.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM