pub trait SetPosition: Sized {
    // Required method
    fn properties(&mut self) -> &mut Properties;

    // Provided methods
    fn x(self, x: f32) -> Self { ... }
    fn y(self, y: f32) -> Self { ... }
    fn z(self, z: f32) -> Self { ... }
    fn xy(self, p: Point2) -> Self { ... }
    fn xyz(self, p: Point3) -> Self { ... }
    fn x_y(self, x: f32, y: f32) -> Self { ... }
    fn x_y_z(self, x: f32, y: f32, z: f32) -> Self { ... }
}
Expand description

An API for setting the position::Properties.

Required Methods§

source

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

Provide a mutable reference to the position::Properties for updating.

Provided Methods§

source

fn x(self, x: f32) -> Self

Build with the given Absolute Position along the x axis.

source

fn y(self, y: f32) -> Self

Build with the given Absolute Position along the y axis.

source

fn z(self, z: f32) -> Self

Build with the given Absolute Position along the z axis.

source

fn xy(self, p: Point2) -> Self

Set the Position with some two-dimensional point.

source

fn xyz(self, p: Point3) -> Self

Set the Position with some three-dimensional point.

source

fn x_y(self, x: f32, y: f32) -> Self

Set the Position with x y coordinates.

source

fn x_y_z(self, x: f32, y: f32, z: f32) -> Self

Set the Position with x y z coordinates.

Object Safety§

This trait is not object safe.

Implementors§