# ScaleTransform3D

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

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

```rust
struct ScaleTransform3D
```

WPF's `ScaleTransform3D`: a scale by `ScaleX`, `ScaleY` and `ScaleZ` about the center
(`CenterX`, `CenterY`, `CenterZ`).

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`scale_x_property`](#function-scale_x_property)
- [`scale_y_property`](#function-scale_y_property)
- [`scale_z_property`](#function-scale_z_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_scale`](#function-with_scale)
- [`with_scale_xyz`](#function-with_scale_xyz)
- [`with_scale_and_center`](#function-with_scale_and_center)
- [`scale_x`](#function-scale_x)
- [`set_scale_x`](#function-set_scale_x)
- [`scale_y`](#function-scale_y)
- [`set_scale_y`](#function-set_scale_y)
- [`scale_z`](#function-scale_z)
- [`set_scale_z`](#function-set_scale_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)

<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#L237)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### scale_x_property

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



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

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

### scale_y_property

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



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

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

### scale_z_property

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



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

<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#L268)

<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#L268)

<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#L268)

<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#L291)

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

### new

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

A scale by one.

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

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

### with_scale

```rust
fn with_scale(scale: Vector3D) -> Ref<Self>
```

A scale by the components of `scale` about the origin.

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

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

### with_scale_xyz

```rust
fn with_scale_xyz(scale_x: f64, scale_y: f64, scale_z: f64) -> Ref<Self>
```

A scale by the three factors about the origin.

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

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

### with_scale_and_center

```rust
fn with_scale_and_center(scale: Vector3D, center: Point3D) -> Ref<Self>
```

A scale by the components of `scale` about `center`.

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

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

### scale_x

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

The scale along the x axis.

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

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

### set_scale_x

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



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

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

### scale_y

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

The scale along the y axis.

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

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

### set_scale_y

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



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

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

### scale_z

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

The scale along the z axis.

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

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

### set_scale_z

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



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

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

### center_x

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

The x coordinate of the center of the scale.

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

<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#L355)

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

### center_y

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

The y coordinate of the center of the scale.

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

<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#L364)

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

### center_z

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

The z coordinate of the center of the scale.

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

<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#L373)

## 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<ScaleTransform3D>`](/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/).
