Trait style::values::generics::transform::ToMatrix

source ·
pub trait ToMatrix {
    // Required methods
    fn is_3d(&self) -> bool;
    fn to_3d_matrix(
        &self,
        reference_box: Option<&Rect<ComputedLength>>,
    ) -> Result<Transform3D<f64>, ()>;
}
Expand description

Support the conversion to a 3d matrix.

Required Methods§

source

fn is_3d(&self) -> bool

Check if it is a 3d transform function.

source

fn to_3d_matrix( &self, reference_box: Option<&Rect<ComputedLength>>, ) -> Result<Transform3D<f64>, ()>

Return the equivalent 3d matrix.

Implementors§

source§

impl<Angle, Number, Length, Integer, LoP> ToMatrix for TransformOperation<Angle, Number, Length, Integer, LoP>
where Angle: Zero + ToRadians + Copy, Number: PartialEq + Copy + Into<f32> + Into<f64>, Length: ToAbsoluteLength, LoP: Zero + ToAbsoluteLength + ZeroNoPercent,