Struct gdal_sys::GDALTriBarycentricCoefficients
source · #[repr(C)]pub struct GDALTriBarycentricCoefficients {
pub dfMul1X: f64,
pub dfMul1Y: f64,
pub dfMul2X: f64,
pub dfMul2Y: f64,
pub dfCstX: f64,
pub dfCstY: f64,
}
Expand description
Triangle barycentric coefficients.
Conversion from cartesian (x,y) to barycentric (l1,l2,l3) with : l1 = dfMul1X * (x - dfCxtX) + dfMul1Y * (y - dfCstY) l2 = dfMul2X * (x - dfCxtX) + dfMul2Y * (y - dfCstY) l3 = 1 - l1 - l2
Fields§
§dfMul1X: f64
< dfMul1X
dfMul1Y: f64
< dfMul1Y
dfMul2X: f64
< dfMul2X
dfMul2Y: f64
< dfMul2Y
dfCstX: f64
< dfCstX
dfCstY: f64
< dfCstY
Trait Implementations§
source§impl Clone for GDALTriBarycentricCoefficients
impl Clone for GDALTriBarycentricCoefficients
source§fn clone(&self) -> GDALTriBarycentricCoefficients
fn clone(&self) -> GDALTriBarycentricCoefficients
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for GDALTriBarycentricCoefficients
Auto Trait Implementations§
impl RefUnwindSafe for GDALTriBarycentricCoefficients
impl Send for GDALTriBarycentricCoefficients
impl Sync for GDALTriBarycentricCoefficients
impl Unpin for GDALTriBarycentricCoefficients
impl UnwindSafe for GDALTriBarycentricCoefficients
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more