---
title: "DgnPoint"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.dgn/dgnpoint/"
product: "Aspose.CAD for Java"
description: "Represents point for DGN format"
---


Represents point for DGN format

## Constructors

| Constructor | Description |
| --- | --- |
| [DgnPoint()](#DgnPoint) | Initiailizes a new instance of the DgnPoint class |
| [DgnPoint(double x, double y)](#DgnPoint-double-double) | Initiailizes a new instance of the DgnPoint class |
| [DgnPoint(double x, double y, double z)](#DgnPoint-double-double-double) | Initiailizes a new instance of the DgnPoint class |

## Methods

| Method | Description |
| --- | --- |
| [getX()](#getX) | Gets or sets X coordinate |
| [setX(double value)](#setX-double) | Gets or sets X coordinate |
| [getY()](#getY) | Gets or sets Y coordinate |
| [setY(double value)](#setY-double) | Gets or sets Y coordinate |
| [getZ()](#getZ) | Gets or sets Z coordinate |
| [setZ(double value)](#setZ-double) | Gets or sets Z coordinate |

### DgnPoint() {#DgnPoint}
```java
public DgnPoint()
```

Initiailizes a new instance of the DgnPoint class

### DgnPoint(double x, double y) {#DgnPoint-double-double}
```java
public DgnPoint(double x, double y)
```

Initiailizes a new instance of the DgnPoint class

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| x | double | X coordinate |
| y | double | Y coordinate |

### DgnPoint(double x, double y, double z) {#DgnPoint-double-double-double}
```java
public DgnPoint(double x, double y, double z)
```

Initiailizes a new instance of the DgnPoint class

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| x | double | X coordinate |
| y | double | Y coordinate |
| z | double | Z coordinate |

### getX() {#getX}
```java
public double getX()
```

Gets or sets X coordinate

**Returns:** double

### setX(double value) {#setX-double}
```java
public void setX(double value)
```

Gets or sets X coordinate

### getY() {#getY}
```java
public double getY()
```

Gets or sets Y coordinate

**Returns:** double

### setY(double value) {#setY-double}
```java
public void setY(double value)
```

Gets or sets Y coordinate

### getZ() {#getZ}
```java
public double getZ()
```

Gets or sets Z coordinate

**Returns:** double

### setZ(double value) {#setZ-double}
```java
public void setZ(double value)
```

Gets or sets Z coordinate

