TransformCoordinates

Trait TransformCoordinates 

Source
pub trait TransformCoordinates: Clone + Default {
Show 39 methods // Required methods fn x(&self) -> f64; fn y(&self) -> f64; fn z(&self) -> f64; fn t(&self) -> f64; fn set_x(&mut self, x: f64); fn set_y(&mut self, y: f64); fn set_z(&mut self, z: f64); fn set_t(&mut self, t: f64); fn has_z(&self) -> bool; // Provided methods fn get(&self, idx: usize) -> f64 { ... } fn set(&mut self, idx: usize, val: f64) { ... } fn u(&self) -> f64 { ... } fn set_u(&mut self, u: f64) { ... } fn lam(&self) -> f64 { ... } fn set_lam(&mut self, lam: f64) { ... } fn s(&self) -> f64 { ... } fn set_s(&mut self, s: f64) { ... } fn o(&self) -> f64 { ... } fn set_o(&mut self, o: f64) { ... } fn e(&self) -> f64 { ... } fn set_e(&mut self, e: f64) { ... } fn v(&self) -> f64 { ... } fn set_v(&mut self, v: f64) { ... } fn phi(&self) -> f64 { ... } fn set_phi(&mut self, phi: f64) { ... } fn a1(&self) -> f64 { ... } fn set_a1(&mut self, t: f64) { ... } fn p(&self) -> f64 { ... } fn set_p(&mut self, t: f64) { ... } fn n(&self) -> f64 { ... } fn set_n(&mut self, n: f64) { ... } fn w(&self) -> f64 { ... } fn set_w(&mut self, w: f64) { ... } fn a2(&self) -> f64 { ... } fn set_a2(&mut self, a2: f64) { ... } fn k(&self) -> f64 { ... } fn set_k(&mut self, k: f64) { ... } fn up(&self) -> f64 { ... } fn set_up(&mut self, up: f64) { ... }
}
Expand description

Projection trait to modify a Point’s values

You only need to implement x, y, z, and t. The rest is for internal use

Required Methods§

Source

fn x(&self) -> f64

Get Geodetic X coordinates

Source

fn y(&self) -> f64

Get Geodetic Y coordinates

Source

fn z(&self) -> f64

Get Geodetic Z coordinates

Source

fn t(&self) -> f64

Get the temporal coordinate

Source

fn set_x(&mut self, x: f64)

Set Geodetic X coordinates

Source

fn set_y(&mut self, y: f64)

Set Geodetic Y coordinates

Source

fn set_z(&mut self, z: f64)

Set Geodetic Z coordinates

Source

fn set_t(&mut self, t: f64)

Set the temporal coordinate

Source

fn has_z(&self) -> bool

Check if Z exists

Provided Methods§

Source

fn get(&self, idx: usize) -> f64

Get a coordinate at index

Source

fn set(&mut self, idx: usize, val: f64)

Set a coordinate at index

Source

fn u(&self) -> f64

Get U

Source

fn set_u(&mut self, u: f64)

Set U

Source

fn lam(&self) -> f64

Get lambda (radial longitude)

Source

fn set_lam(&mut self, lam: f64)

Set lambda (radial longitude)

Source

fn s(&self) -> f64

Get S (Geodesic length)

Source

fn set_s(&mut self, s: f64)

Set S (Geodesic length)

Source

fn o(&self) -> f64

Get Omega (Rotation)

Source

fn set_o(&mut self, o: f64)

Set Omega (Rotation)

Source

fn e(&self) -> f64

Get East (Directional coordinate)

Source

fn set_e(&mut self, e: f64)

Set East (Directional coordinate)

Source

fn v(&self) -> f64

Get V (UV space)

Source

fn set_v(&mut self, v: f64)

Set V (UV space)

Source

fn phi(&self) -> f64

Get Phi (radial latitude)

Source

fn set_phi(&mut self, phi: f64)

Set Phi (radial latitude)

Source

fn a1(&self) -> f64

Get fwd azi (Geodesic measurement)

Source

fn set_a1(&mut self, t: f64)

Set fwd azi (Geodesic measurement)

Source

fn p(&self) -> f64

Get Phi (Rotations measurement)

Source

fn set_p(&mut self, t: f64)

Set Phi (Rotations measurement)

Source

fn n(&self) -> f64

Get North (Directional coordinate)

Source

fn set_n(&mut self, n: f64)

Set North (Directional coordinate)

Source

fn w(&self) -> f64

Get W

Source

fn set_w(&mut self, w: f64)

Set W

Source

fn a2(&self) -> f64

Get rev azi (Geodesic measurement)

Source

fn set_a2(&mut self, a2: f64)

Set rev azi (Geodesic measurement)

Source

fn k(&self) -> f64

Get Kappa (Rotation)

Source

fn set_k(&mut self, k: f64)

Set Kappa (Rotation)

Source

fn up(&self) -> f64

Get Up (Directional coordinate)

Source

fn set_up(&mut self, up: f64)

Set Up (Directional coordinate)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<M: Default + Clone> TransformCoordinates for VectorPoint<M>

Source§

fn x(&self) -> f64

Source§

fn y(&self) -> f64

Source§

fn z(&self) -> f64

Source§

fn t(&self) -> f64

Source§

fn set_x(&mut self, x: f64)

Source§

fn set_y(&mut self, y: f64)

Source§

fn set_z(&mut self, z: f64)

Source§

fn set_t(&mut self, t: f64)

Source§

fn has_z(&self) -> bool

Implementors§