# ProjectionCamera

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

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

```rust
struct ProjectionCamera
```

WPF's `ProjectionCamera`: a camera at `Position` looking along `LookDirection` with
`UpDirection` up, between `NearPlaneDistance` and `FarPlaneDistance`.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`position_property`](#function-position_property)
- [`look_direction_property`](#function-look_direction_property)
- [`up_direction_property`](#function-up_direction_property)
- [`near_plane_distance_property`](#function-near_plane_distance_property)
- [`far_plane_distance_property`](#function-far_plane_distance_property)
- [`construct`](#function-construct)
- [`position`](#function-position)
- [`set_position`](#function-set_position)
- [`look_direction`](#function-look_direction)
- [`set_look_direction`](#function-set_look_direction)
- [`up_direction`](#function-up_direction)
- [`set_up_direction`](#function-set_up_direction)
- [`near_plane_distance`](#function-near_plane_distance)
- [`set_near_plane_distance`](#function-set_near_plane_distance)
- [`far_plane_distance`](#function-far_plane_distance)
- [`set_far_plane_distance`](#function-set_far_plane_distance)

<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/camera.rs#L130)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### position_property

```rust
fn position_property() -> &'static StyledProperty<Point3D>
```



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

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

### look_direction_property

```rust
fn look_direction_property() -> &'static StyledProperty<Vector3D>
```



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

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

### up_direction_property

```rust
fn up_direction_property() -> &'static StyledProperty<Vector3D>
```



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

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

### near_plane_distance_property

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



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

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

### far_plane_distance_property

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



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

<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/camera.rs#L178)

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

### position

```rust
fn position(self: &Self) -> Point3D
```

The position of the camera, before its transform.

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

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

### set_position

```rust
fn set_position(self: &Self, value: Point3D)
```



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

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

### look_direction

```rust
fn look_direction(self: &Self) -> Vector3D
```

The direction the camera looks in, before its transform.

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

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

### set_look_direction

```rust
fn set_look_direction(self: &Self, value: Vector3D)
```



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

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

### up_direction

```rust
fn up_direction(self: &Self) -> Vector3D
```

The direction of the top of the camera, before its transform.

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

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

### set_up_direction

```rust
fn set_up_direction(self: &Self, value: Vector3D)
```



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

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

### near_plane_distance

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

The distance of the near clipping plane (0.125 by default).

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

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

### set_near_plane_distance

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



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

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

### far_plane_distance

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

The distance of the far clipping plane (infinite by default: the snapshot then fits it to
the scene).

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

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

### set_far_plane_distance

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



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`CameraImplExt`](/docs/0.5.0/api/ferroui-media3d/trait-cameraimplext/)
- `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<ProjectionCamera>`](/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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`CameraImpl`](/docs/0.5.0/api/ferroui-media3d/trait-cameraimpl/)

## Availability

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