# Trait nannou::draw::properties::spatial::orientation::SetOrientation [−][src]

```
pub trait SetOrientation: Sized {
```## Show 20 methods

fn properties(&mut self) -> &mut Properties;
fn look_at(self, target: Point3) -> Self { ... }
fn x_radians(self, x: f32) -> Self { ... }
fn y_radians(self, y: f32) -> Self { ... }
fn z_radians(self, z: f32) -> Self { ... }
fn x_degrees(self, x: f32) -> Self { ... }
fn y_degrees(self, y: f32) -> Self { ... }
fn z_degrees(self, z: f32) -> Self { ... }
fn x_turns(self, x: f32) -> Self { ... }
fn y_turns(self, y: f32) -> Self { ... }
fn z_turns(self, z: f32) -> Self { ... }
fn radians(self, v: Vec3) -> Self { ... }
fn degrees(self, v: Vec3) -> Self { ... }
fn turns(self, v: Vec3) -> Self { ... }
fn euler(self, e: Vec3) -> Self { ... }
fn quaternion(self, q: Quat) -> Self { ... }
fn pitch(self, pitch: f32) -> Self { ... }
fn yaw(self, yaw: f32) -> Self { ... }
fn roll(self, roll: f32) -> Self { ... }
fn rotate(self, radians: f32) -> Self { ... }
}

## Expand description

An API for setting the **orientation::Properties**.

## Required methods

#### fn properties(&mut self) -> &mut Properties

#### fn properties(&mut self) -> &mut Properties

Provide a mutable reference to the **orientation::Properties** for updating.

## Provided methods

Describe orientation via the vector that points to the given target.

Specify the orientation around the *x* axis as an absolute value in radians.

Specify the orientation around the *y* axis as an absolute value in radians.

Specify the orientation around the *z* axis as an absolute value in radians.

Specify the orientation around the *x* axis as an absolute value in degrees.

Specify the orientation around the *y* axis as an absolute value in degrees.

Specify the orientation around the *z* axis as an absolute value in degrees.

Specify the orientation around the *x* axis as a number of turns around the axis.

Specify the orientation around the *y* axis as a number of turns around the axis.

Specify the orientation around the *z* axis as a number of turns around the axis.

Specify the orientation along each axis with the given **Vector** of radians.

This has the same affect as calling `self.x_radians(v.x).y_radians(v.y).z_radians(v.z)`

.

Specify the orientation along each axis with the given **Vector** of degrees.

This has the same affect as calling `self.x_degrees(v.x).y_degrees(v.y).z_degrees(v.z)`

.

Specify the orientation along each axis with the given **Vector** of “turns”.

This has the same affect as calling `self.x_turns(v.x).y_turns(v.y).z_turns(v.z)`

.

Specify the orientation with the given euler orientation in radians.

#### fn quaternion(self, q: Quat) -> Self

#### fn quaternion(self, q: Quat) -> Self

Specify the orientation with the given **Quaternion**.

Specify the “pitch” of the orientation in radians.

This has the same effect as calling `x_radians`

.

Specify the “yaw” of the orientation in radians.

This has the same effect as calling `y_radians`

.

Specify the “roll” of the orientation in radians.

This has the same effect as calling `z_radians`

.