# RotateTransform3D

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

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

```rust
struct RotateTransform3D
```

WPF's `RotateTransform3D`: the rotation of its `Rotation` about the center (`CenterX`,
`CenterY`, `CenterZ`). Without a rotation it is the identity.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`rotation_property`](#function-rotation_property)
- [`center_x_property`](#function-center_x_property)
- [`center_y_property`](#function-center_y_property)
- [`center_z_property`](#function-center_z_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_rotation`](#function-with_rotation)
- [`with_rotation_and_center`](#function-with_rotation_and_center)
- [`rotation`](#function-rotation)
- [`set_rotation`](#function-set_rotation)
- [`center_x`](#function-center_x)
- [`set_center_x`](#function-set_center_x)
- [`center_y`](#function-center_y)
- [`set_center_y`](#function-set_center_y)
- [`center_z`](#function-center_z)
- [`set_center_z`](#function-set_center_z)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<RotateTransform3D>
```

Returns a strong reference to this object.

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

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

### rotation_property

```rust
fn rotation_property() -> &'static StyledProperty<Option<Ref<Rotation3D>>>
```



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

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

### center_x_property

```rust
fn center_x_property() -> &'static StyledProperty<f64>
```



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

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

### center_y_property

```rust
fn center_y_property() -> &'static StyledProperty<f64>
```



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

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

### center_z_property

```rust
fn center_z_property() -> &'static StyledProperty<f64>
```



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

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

### construct

```rust
fn construct() -> Self
```

Creates the class data.

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

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

### new

```rust
fn new() -> Ref<Self>
```

A transform without a rotation.

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

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

### with_rotation

```rust
fn with_rotation(rotation: Ref<Rotation3D>) -> Ref<Self>
```

The rotation about the origin.

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

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

### with_rotation_and_center

```rust
fn with_rotation_and_center(rotation: Ref<Rotation3D>, center: Point3D) -> Ref<Self>
```

The rotation about `center`.

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

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

### rotation

```rust
fn rotation(self: &Self) -> Option<Ref<Rotation3D>>
```

The rotation.

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

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

### set_rotation

```rust
fn set_rotation(self: &Self, value: Option<Ref<Rotation3D>>)
```



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

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

### center_x

```rust
fn center_x(self: &Self) -> f64
```

The x coordinate of the center of the rotation.

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

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

### set_center_x

```rust
fn set_center_x(self: &Self, value: f64)
```



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

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

### center_y

```rust
fn center_y(self: &Self) -> f64
```

The y coordinate of the center of the rotation.

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

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

### set_center_y

```rust
fn set_center_y(self: &Self, value: f64)
```



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

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

### center_z

```rust
fn center_z(self: &Self) -> f64
```

The z coordinate of the center of the rotation.

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

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

### set_center_z

```rust
fn set_center_z(self: &Self, value: f64)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`Transform3DImplExt`](/docs/0.5.0/api/ferroui-media3d/trait-transform3dimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RotateTransform3D>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`Transform3DImpl`](/docs/0.5.0/api/ferroui-media3d/trait-transform3dimpl/)

## Availability

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