# CurveToV Class

> A curveto operator where the first control point matches the beginning.

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

```java
class CurveToV : Segment
```

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

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

## Description

A curveto operator where the first control point matches the beginning. The current point is the beginning point in the curve.

The name CurveToV is drawn from the "V" path construction operator.

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

## Constructors

### CurveToV

```java
com.datalogics.PDFL.CurveToV.CurveToV(double x2, double y2, double x3, double y3)
```

*constructor*

**Parameters**

- `x2` (`double`): The x-coordinate of the second control point.
- `y2` (`double`): The y-coordinate of the second control point.
- `x3` (`double`): The x-coordinate of the new current point.
- `y3` (`double`): The y-coordinate of the new current point.

Append a cubic Bézier curve to the current path.The curve extends from the current point to the point (x3, y3), using the current point and (x2, y2) as the Bézier control points.The new current point is (x3 ,y3).

### CurveToV

```java
com.datalogics.PDFL.CurveToV.CurveToV(Point point2, Point point3)
```

*constructor*

**Parameters**

- `point2` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): the second control point.
- `point3` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): the new current point.

Append a cubic Bézier curve to the current path.The curve extends from the current point to point3, using the current point and point2 as the Bézier control points.The new current point is point3.

## Methods

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`

### getPoint2

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

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

The second control point.

### getPoint3

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

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

The new current point.

### setPoint2

```java
void com.datalogics.PDFL.CurveToV.setPoint2(Point value)
```

**Parameters**

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

**Returns:** `void`

The second control point.

### setPoint3

```java
void com.datalogics.PDFL.CurveToV.setPoint3(Point value)
```

**Parameters**

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

**Returns:** `void`

The new current point.

### toString

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

**Returns:** `String`
