TypeLibF Xojo Plugin

LineF Class (console safe)

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

Object
   LineF

class LineF

Constructors

LineFThe default constructor for the LineF class.
LineFA constructor which takes x1, y1, x2 and y2 coordinates as a parameters.
LineFA constructor which takes two PointF points as parameters to define the line.

Properties

Clone (console safe) Returns a clone of the LineF.
x1 (console safe) Sets or gets the x1 coordinate of the line.
x2 (console safe) Sets or gets the x2 coordinate of the line.
y1 (console safe) Sets or gets the y1 coordinate of the line.
y2 (console safe) Sets or gets the y2 coordinate of the line.

Methods

Contains (console safe) Returns true if the given point is within the line.
Contains (console safe) Returns true if the given coordinates is within the line.
DrawDraws the line into a Graphics context with the current color of the Graphics context.
ExtendLine (console safe) Returns a copy of the line which has been extended or shrunk in both directions by given amount.
ExtendLineByRatio (console safe) Returns a copy of the line which has been extended or shrunk in both directions by given percentage.
GetCenter (console safe) Returns center of the line as a Point.
Intersects (console safe) Returns true if the line intersects with the other given line and also gives information on where the two lines crossed.
Intersects (console safe) Returns true if the line intersects with the other given line.
Length (console safe) Returns the length of the line.
MakeParallel (console safe) Creates a new line that is parallel to the current line, offset at straight angle relative to the current line by a given distance.
PointDistanceFromInfiniteLine (console safe) Calculates distance of a point from a line that is infinite long.
PointDistanceFromLine (console safe) Calculates distance of a point from a fixed length line.
Rotate (console safe) Rotates the line in a coordinate system around a defined center point.

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