Factory Functions
- function GLine(x0, y0, x1, y1)
- Creates a new GLine connecting points (x0, y0) and (x1, y1).
Methods
- function GLine::distanceSquared()
- Returns: The length of this line, squared ().
- function GLine::setStartPoint(x, y)
- Sets the initial point and origin of this line to (x, y),
without changing the position of the end point.
- function GLine::getStartPoint()
- Returns: The x and y coordinates of the start point as a GPoint.
- function GLine::setEndPoint(x, y)
- Sets the end point of this line to (x, y),
without changing the position of the start point or the origin.
- function GLine::getEndPoint()
- Returns: The x and y coordinates of the end point as a GPoint.