# Rotate3DTransform

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-rotate3dtransform/

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

```rust
struct Rotate3DTransform
```

Non-affine 3D transformation for rotating a visual around a definable
axis.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L65)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`angle_x_property`](#function-angle_x_property)
- [`angle_y_property`](#function-angle_y_property)
- [`angle_z_property`](#function-angle_z_property)
- [`center_x_property`](#function-center_x_property)
- [`center_y_property`](#function-center_y_property)
- [`center_z_property`](#function-center_z_property)
- [`depth_property`](#function-depth_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_values`](#function-with_values)
- [`angle_x`](#function-angle_x)
- [`set_angle_x`](#function-set_angle_x)
- [`angle_y`](#function-angle_y)
- [`set_angle_y`](#function-set_angle_y)
- [`angle_z`](#function-angle_z)
- [`set_angle_z`](#function-set_angle_z)
- [`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)
- [`depth`](#function-depth)
- [`set_depth`](#function-set_depth)

<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.Base/rotate_3d_transform.rs#L70)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L70)

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

### angle_x_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L147)

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

### angle_y_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L147)

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

### angle_z_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L147)

<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.Base/rotate_3d_transform.rs#L147)

<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.Base/rotate_3d_transform.rs#L147)

<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.Base/rotate_3d_transform.rs#L147)

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

### depth_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L147)

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

### construct

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

Creates the class data.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L179)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L183)

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

### with_values

```rust
fn with_values(angle_x: f64, angle_y: f64, angle_z: f64, center_x: f64, center_y: f64, center_z: f64, depth: f64) -> Ref<Self>
```

Creates a transform with the given rotation angles (in degrees),
rotation center and depth.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L190)

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

### angle_x

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

The rotation around the X-axis, in degrees.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L213)

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

### set_angle_x

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L217)

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

### angle_y

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

The rotation around the Y-axis, in degrees.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L222)

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

### set_angle_y

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L226)

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

### angle_z

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

The rotation around the Z-axis, in degrees.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L231)

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

### set_angle_z

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L235)

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

### center_x

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

The X-coordinate of the rotation center.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L240)

<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.Base/rotate_3d_transform.rs#L244)

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

### center_y

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

The Y-coordinate of the rotation center.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L249)

<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.Base/rotate_3d_transform.rs#L253)

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

### center_z

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

The Z-coordinate of the rotation center.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L258)

<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.Base/rotate_3d_transform.rs#L262)

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

### depth

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

The focal length of the camera.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L267)

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

### set_depth

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rotate_3d_transform.rs#L271)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TransformImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-transformimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `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`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<Rotate3DTransform>`](/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/)
- [`TransformImpl`](/docs/0.5.0/api/ferroui-base/media/trait-transformimpl/)

## Availability

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