# Point3D

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media3d/struct-point3d/

**struct** · [`ferroui-media3d`](/docs/0.5.0/api/ferroui-media3d/) · v0.5.0

```rust
struct Point3D
```

A location in 3D space, with double-precision coordinates (WPF's
`System.Windows.Media.Media3D.Point3D`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L15)

## Members

- [`x`](#struct_field-x)
- [`y`](#struct_field-y)
- [`z`](#struct_field-z)
- [`new`](#function-new)
- [`offset`](#function-offset)
- [`parse`](#function-parse)

<a id="struct_field-x"></a>

### x

```rust
x: f64
```

The X coordinate.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L17)

<a id="struct_field-y"></a>

### y

```rust
y: f64
```

The Y coordinate.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L19)

<a id="struct_field-z"></a>

### z

```rust
z: f64
```

The Z coordinate.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L21)

<a id="function-new"></a>

### new

```rust
const fn new(x: f64, y: f64, z: f64) -> Self
```

A point with the given coordinates.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L27)

<a id="function-offset"></a>

### offset

```rust
fn offset(self: &mut Self, offset_x: f64, offset_y: f64, offset_z: f64)
```

Moves the point by the given amounts.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L33)

<a id="function-parse"></a>

### parse

```rust
fn parse(text: &str) -> Result<Self, FormatError>
```

Parses the text form `"x,y,z"` (commas, white space or both between the numbers) in the
invariant culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media3D/point_3d.rs#L41)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `FromIterator<Point3D>`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`
- `Add<Vector3D>`
- `Sub<Vector3D>`
- `Sub`
- `Mul<Matrix3D>`
- `AddAssign<Vector3D>`
- `SubAssign<Vector3D>`
- `From<Point3D>`
- `FromStr`
- `Display`
- `From<Size3D>`
- `Add<Point3D>`
- `Sub<Point3D>`
- `From<Vector3D>`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
