# Point Class

> Represents a discrete point or space in a PDF.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class Point
```

**Namespace:** `com::datalogics::PDFL`

## Description

Represents a discrete point or space in a PDF. A Point in a PDF document is in the right plane, relative to the origin being the lower left corner of the document.

**Referenced by:** [`AxialShadingPattern`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/AxialShadingPattern.md), [`CurveTo`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/CurveTo.md), [`CurveToV`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/CurveToV.md), [`CurveToY`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/CurveToY.md), [`InkAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/InkAnnotation.md), [`LineAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/LineAnnotation.md), [`LineTo`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/LineTo.md), [`LinkAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/LinkAnnotation.md), [`MoveTo`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/MoveTo.md), [`Path`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Path.md), [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md), [`PointVector`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PointVector.md), [`PolyLineAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PolyLineAnnotation.md), [`PolygonAnnotation`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PolygonAnnotation.md), [`Quad`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Quad.md), [`RectSegment`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RectSegment.md), [`Text`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Text.md)

**Uses types:** [`Matrix`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Matrix.md), [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

## Constructors

### Point

```java
com.datalogics.PDFL.Point.Point()
```

*constructor*

Create a new point at the origin (0.0, 0.0).

### Point

```java
com.datalogics.PDFL.Point.Point(double nh, double nv)
```

*constructor*

**Parameters**

- `nh` (`double`): the horizontal coordinate
- `nv` (`double`): the vertical coordinate

Create a new point at the specified coordinates.

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.Point.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.Point.delete()
```

**Returns:** `synchronized void`

### distanceTransform

```java
Point com.datalogics.PDFL.Point.distanceTransform(Matrix arg0)
```

**Parameters**

- `arg0` ([`Matrix`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Matrix.md))

**Returns:** [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

A new Point representing the distance-transformed coordinates.

Distance Transform the Point by the values in the Matrix parameter. Applies a transformation without any translation component to this Point. This is useful for transforming distances or vectors rather than positions.

### equals

```java
boolean com.datalogics.PDFL.Point.equals(Object rhs)
```

**Parameters**

- `rhs` (`Object`)

**Returns:** `boolean`

### finalize

```java
void com.datalogics.PDFL.Point.finalize()
```

*protected*

**Returns:** `void`

### getH

```java
double com.datalogics.PDFL.Point.getH()
```

**Returns:** `double`

The horizontal coordinate of the point.

### getV

```java
double com.datalogics.PDFL.Point.getV()
```

**Returns:** `double`

The vertical coordinate of the point.

### setH

```java
void com.datalogics.PDFL.Point.setH(double value)
```

**Parameters**

- `value` (`double`)

**Returns:** `void`

The horizontal coordinate of the point.

### setV

```java
void com.datalogics.PDFL.Point.setV(double value)
```

**Parameters**

- `value` (`double`)

**Returns:** `void`

The vertical coordinate of the point.

### toString

```java
String com.datalogics.PDFL.Point.toString()
```

**Returns:** `String`

A string in the format "( h,v )".

Return a string representation of the Point.

### transform

```java
Point com.datalogics.PDFL.Point.transform(Matrix arg0)
```

**Parameters**

- `arg0` ([`Matrix`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Matrix.md))

**Returns:** [`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)

A new Point representing the transformed coordinates.

Transform the Point by the values in the Matrix parameter. Applies a full affine transformation (including translation) to this Point using the given Matrix.
