Available on crate feature
plot only.Expand description
A 3D cartesian coordinate system
Implementations
sourceimpl<X, Y, Z> Cartesian3d<X, Y, Z> where
X: Ranged,
Y: Ranged,
Z: Ranged,
impl<X, Y, Z> Cartesian3d<X, Y, Z> where
X: Ranged,
Y: Ranged,
Z: Ranged,
pub fn with_projection<SX, SY, SZ, F>(
logic_x: SX,
logic_y: SY,
logic_z: SZ,
(Range<i32>, Range<i32>),
build_projection_matrix: F
) -> Cartesian3d<X, Y, Z> where
SX: Into<X>,
SY: Into<Y>,
SZ: Into<Z>,
F: FnOnce(ProjectionMatrixBuilder) -> ProjectionMatrix,
pub fn set_coord_pixel_range(
&mut self,
actual_x: Range<i32>,
actual_y: Range<i32>,
coord_size: (i32, i32, i32)
) -> &mut Cartesian3d<X, Y, Z>
sourcepub fn set_projection<F>(
&mut self,
actual_x: Range<i32>,
actual_y: Range<i32>,
f: F
) -> &mut Cartesian3d<X, Y, Z> where
F: FnOnce(ProjectionMatrixBuilder) -> ProjectionMatrix,
pub fn set_projection<F>(
&mut self,
actual_x: Range<i32>,
actual_y: Range<i32>,
f: F
) -> &mut Cartesian3d<X, Y, Z> where
F: FnOnce(ProjectionMatrixBuilder) -> ProjectionMatrix,
Set the projection matrix
sourcepub fn new<SX, SY, SZ>(
logic_x: SX,
logic_y: SY,
logic_z: SZ,
(Range<i32>, Range<i32>)
) -> Cartesian3d<X, Y, Z> where
SX: Into<X>,
SY: Into<Y>,
SZ: Into<Z>,
pub fn new<SX, SY, SZ>(
logic_x: SX,
logic_y: SY,
logic_z: SZ,
(Range<i32>, Range<i32>)
) -> Cartesian3d<X, Y, Z> where
SX: Into<X>,
SY: Into<Y>,
SZ: Into<Z>,
Create a new coordinate
sourcepub fn projection(&self) -> &ProjectionMatrix
pub fn projection(&self) -> &ProjectionMatrix
Get the projection matrix
Trait Implementations
sourceimpl<X, Y, Z> CoordTranslate for Cartesian3d<X, Y, Z> where
X: Ranged,
Y: Ranged,
Z: Ranged,
impl<X, Y, Z> CoordTranslate for Cartesian3d<X, Y, Z> where
X: Ranged,
Y: Ranged,
Z: Ranged,
type From = (<X as Ranged>::ValueType, <Y as Ranged>::ValueType, <Z as Ranged>::ValueType)
sourcefn translate(
&self,
coord: &<Cartesian3d<X, Y, Z> as CoordTranslate>::From
) -> (i32, i32)
fn translate(
&self,
coord: &<Cartesian3d<X, Y, Z> as CoordTranslate>::From
) -> (i32, i32)
Translate the guest coordinate to the guest coordinate
sourcefn depth(&self, coord: &<Cartesian3d<X, Y, Z> as CoordTranslate>::From) -> i32
fn depth(&self, coord: &<Cartesian3d<X, Y, Z> as CoordTranslate>::From) -> i32
Get the Z-value of current coordinate
Auto Trait Implementations
impl<X, Y, Z> RefUnwindSafe for Cartesian3d<X, Y, Z> where
X: RefUnwindSafe,
Y: RefUnwindSafe,
Z: RefUnwindSafe,
impl<X, Y, Z> Send for Cartesian3d<X, Y, Z> where
X: Send,
Y: Send,
Z: Send,
impl<X, Y, Z> Sync for Cartesian3d<X, Y, Z> where
X: Sync,
Y: Sync,
Z: Sync,
impl<X, Y, Z> Unpin for Cartesian3d<X, Y, Z> where
X: Unpin,
Y: Unpin,
Z: Unpin,
impl<X, Y, Z> UnwindSafe for Cartesian3d<X, Y, Z> where
X: UnwindSafe,
Y: UnwindSafe,
Z: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more