Enum nannou::draw::properties::spatial::orientation::Properties [−][src]
Orientation properties for Drawing a Node.
Variants
Axes(Axes<S>)
The orientation described by an angle along each axis.
LookAt(LookAt<S>)
The orientation described by looking at some other point.
Methods
impl<S> Properties<S>
[src]
impl<S> Properties<S>
pub fn switch_to_axes(&mut self)
[src]
pub fn switch_to_axes(&mut self)
If the Properties
was set to the LookAt
variant, this method switches to the Axes
variant.
If the Properties
is already Axes
, nothing changes.
Trait Implementations
impl<S: Copy> Copy for Properties<S>
[src]
impl<S: Copy> Copy for Properties<S>
impl<S: Clone> Clone for Properties<S>
[src]
impl<S: Clone> Clone for Properties<S>
fn clone(&self) -> Properties<S>
[src]
fn clone(&self) -> Properties<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Properties<S>
[src]
impl<S: Debug> Debug for Properties<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for Properties<S>
[src]
impl<S: PartialEq> PartialEq for Properties<S>
fn eq(&self, other: &Properties<S>) -> bool
[src]
fn eq(&self, other: &Properties<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Properties<S>) -> bool
[src]
fn ne(&self, other: &Properties<S>) -> bool
This method tests for !=
.
impl<S> SetOrientation<S> for Properties<S>
[src]
impl<S> SetOrientation<S> for Properties<S>
fn properties(&mut self) -> &mut Properties<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
Provide a mutable reference to the orientation::Properties for updating.
fn look_at(self, target: LookAt<S>) -> Self
[src]
fn look_at(self, target: LookAt<S>) -> Self
Describe orientation via the vector that points to the given target.
fn look_at_node(self, node: Index) -> Self
[src]
fn look_at_node(self, node: Index) -> Self
Describe orientation via the vector that points to the given node.
fn look_at_point(self, point: Point3<S>) -> Self
[src]
fn look_at_point(self, point: Point3<S>) -> Self
Describe orientation via the vector that points to the given point.
fn x_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn x_orientation(self, orientation: Orientation<S>) -> Self
Build with the given Orientation along the x axis.
fn y_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn y_orientation(self, orientation: Orientation<S>) -> Self
Build with the given Orientation along the x axis.
fn z_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn z_orientation(self, orientation: Orientation<S>) -> Self
Build with the given Orientation along the x axis.
fn x_radians(self, x: S) -> Self
[src]
fn x_radians(self, x: S) -> Self
Specify the orientation around the x axis as an absolute value in radians.
fn y_radians(self, y: S) -> Self
[src]
fn y_radians(self, y: S) -> Self
Specify the orientation around the y axis as an absolute value in radians.
fn z_radians(self, z: S) -> Self
[src]
fn z_radians(self, z: S) -> Self
Specify the orientation around the z axis as an absolute value in radians.
fn x_degrees(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_degrees(self, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as an absolute value in radians.
fn y_degrees(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_degrees(self, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as an absolute value in radians.
fn z_degrees(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_degrees(self, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as an absolute value in radians.
fn x_turns(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_turns(self, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as a number of turns around the axis.
fn y_turns(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_turns(self, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as a number of turns around the axis.
fn z_turns(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_turns(self, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as a number of turns around the axis.
fn radians(self, v: Vector3<S>) -> Self
[src]
fn radians(self, v: Vector3<S>) -> Self
Specify the orientation along each axis with the given Vector of radians. Read more
fn degrees(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn degrees(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify the orientation along each axis with the given Vector of degrees. Read more
fn turns(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn turns(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify the orientation along each axis with the given Vector of "turns". Read more
fn euler<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
fn euler<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
Specify the orientation with the given Euler. Read more
fn quaternion(self, q: Quaternion<S>) -> Self where
S: BaseFloat,
[src]
fn quaternion(self, q: Quaternion<S>) -> Self where
S: BaseFloat,
Specify the orientation with the given Quaternion.
fn x_radians_relative(self, x: S) -> Self
[src]
fn x_radians_relative(self, x: S) -> Self
Specify the orientation around the x axis as a relative value in radians.
fn y_radians_relative(self, y: S) -> Self
[src]
fn y_radians_relative(self, y: S) -> Self
Specify the orientation around the y axis as a relative value in radians.
fn z_radians_relative(self, z: S) -> Self
[src]
fn z_radians_relative(self, z: S) -> Self
Specify the orientation around the z axis as a relative value in radians.
fn x_radians_relative_to(self, other: Index, x: S) -> Self
[src]
fn x_radians_relative_to(self, other: Index, x: S) -> Self
Specify the orientation around the x axis as a relative value in radians.
fn y_radians_relative_to(self, other: Index, y: S) -> Self
[src]
fn y_radians_relative_to(self, other: Index, y: S) -> Self
Specify the orientation around the y axis as a relative value in radians.
fn z_radians_relative_to(self, other: Index, z: S) -> Self
[src]
fn z_radians_relative_to(self, other: Index, z: S) -> Self
Specify the orientation around the z axis as a relative value in radians.
fn x_degrees_relative(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_degrees_relative(self, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as a relative value in degrees.
fn y_degrees_relative(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_degrees_relative(self, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as a relative value in degrees.
fn z_degrees_relative(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_degrees_relative(self, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as a relative value in degrees.
fn x_degrees_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
[src]
fn x_degrees_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as a relative value in degrees.
fn y_degrees_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
[src]
fn y_degrees_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as a relative value in degrees.
fn z_degrees_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
[src]
fn z_degrees_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as a relative value in degrees.
fn x_turns_relative(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_turns_relative(self, x: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the x axis as a number of turns around the axis.
fn y_turns_relative(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_turns_relative(self, y: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the y axis as a number of turns around the axis.
fn z_turns_relative(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_turns_relative(self, z: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the z axis as a number of turns around the axis.
fn x_turns_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
[src]
fn x_turns_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the x axis as a number of turns around the axis.
fn y_turns_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
[src]
fn y_turns_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the y axis as a number of turns around the axis.
fn z_turns_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
[src]
fn z_turns_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the z axis as a number of turns around the axis.
fn radians_relative(self, v: Vector3<S>) -> Self
[src]
fn radians_relative(self, v: Vector3<S>) -> Self
Specify a relative orientation along each axis with the given Vector of radians. Read more
fn radians_relative_to(self, other: Index, v: Vector3<S>) -> Self
[src]
fn radians_relative_to(self, other: Index, v: Vector3<S>) -> Self
Specify a relative orientation along each axis with the given Vector of radians. Read more
fn degrees_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn degrees_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of degrees. Read more
fn degrees_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn degrees_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of degrees. Read more
fn turns_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn turns_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of "turns". Read more
fn turns_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn turns_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of "turns". Read more
fn euler_relative<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
fn euler_relative<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
Specify a relative orientation with the given Euler. Read more
fn euler_relative_to<A>(self, other: Index, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
fn euler_relative_to<A>(self, other: Index, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
Specify a relative orientation with the given Euler. Read more
fn pitch(self, pitch: S) -> Self
[src]
fn pitch(self, pitch: S) -> Self
Specify the "pitch" of the orientation in radians. Read more
fn yaw(self, yaw: S) -> Self
[src]
fn yaw(self, yaw: S) -> Self
Specify the "yaw" of the orientation in radians. Read more
fn roll(self, roll: S) -> Self
[src]
fn roll(self, roll: S) -> Self
Specify the "roll" of the orientation in radians. Read more
fn rotate(self, radians: S) -> Self
[src]
fn rotate(self, radians: S) -> Self
Assuming we're looking at a 2D plane, positive values cause a clockwise rotation where the given value is specified in radians. Read more
impl<S> Default for Properties<S>
[src]
impl<S> Default for Properties<S>
Auto Trait Implementations
impl<S> Send for Properties<S> where
S: Send,
impl<S> Send for Properties<S> where
S: Send,
impl<S> Sync for Properties<S> where
S: Sync,
impl<S> Sync for Properties<S> where
S: Sync,