public class ASCoordinate extends ASObject
| Constructor and Description |
|---|
ASCoordinate(ASCoordinate coordinate)
Copy constructor.
|
ASCoordinate(double x,
double y) |
| Modifier and Type | Method and Description |
|---|---|
double |
angleTo(ASCoordinate coord)
Find the angle as measured along a line from this
coordinate to the specified coordinate.
|
double |
distanceTo(ASCoordinate coord)
Find the shortest Euclidean distance between
this coordinate point and the specified
coordinate point.
|
double |
distanceToSquare(ASCoordinate coord)
Find the square of shortest Euclidean distance between
this coordinate point and the specified
coordinate point.
|
String |
toString() |
ASCoordinate |
transform(ASMatrix ctm)
Transform the coordinate by a coordinate
transformation matrix.
|
ASCoordinate |
translate(double dx,
double dy)
Translate the coordinate by dx, dy
|
void |
write(OutputByteStream outputByteStream)
Writes the ASCoordinate in to the given OutputStream in the format expected by the PDF Spec.
|
double |
x() |
double |
y() |
public ASCoordinate(double x,
double y)
x - y - public ASCoordinate(ASCoordinate coordinate)
coordinate - public ASCoordinate translate(double dx, double dy)
dx - The x offsetdy - The y offsetpublic ASCoordinate transform(ASMatrix ctm)
ctm - - Coordinate Transformation Matrixpublic double distanceTo(ASCoordinate coord)
coord - public double distanceToSquare(ASCoordinate coord)
coord - public double angleTo(ASCoordinate coord)
coord - public void write(OutputByteStream outputByteStream) throws PDFIOException
write in class ASObjectoutputByteStream - OutputStream to write to.PDFIOExceptionpublic double x()
public double y()
Copyright © 2010 - 2020 Adobe. All Rights Reserved