# CurveToY Class

> A curveto operator where the second control point matches the end point.

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

```java
class CurveToY : 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 second control point matches the end point. Here the new current point is the end point in the curve.

The name CurveToY is drawn from the "Y" path construction operator.

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

## Constructors

### CurveToY

```java
com.datalogics.PDFL.CurveToY.CurveToY(double x1, double y1, double x3, double y3)
```

*constructor*

**Parameters**

- `x1` (`double`): The x-coordinate of the first control point.
- `y1` (`double`): The y-coordinate of the first 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 (x1, y1) and (x3, y3) as the Bézier control points.The new current point is (x3 ,y3).

### CurveToY

```java
com.datalogics.PDFL.CurveToY.CurveToY(Point point1, Point point3)
```

*constructor*

**Parameters**

- `point1` ([`Point`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Point.md)): the first 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 point1 and point3 as the Bézier control points.The new current point is point3.

## Methods

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`

### getPoint1

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

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

The first control point.

### getPoint3

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

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

The new current point.

### setPoint1

```java
void com.datalogics.PDFL.CurveToY.setPoint1(Point value)
```

**Parameters**

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

**Returns:** `void`

The first control point.

### setPoint3

```java
void com.datalogics.PDFL.CurveToY.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.CurveToY.toString()
```

**Returns:** `String`
