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§
sourcefn to_3d_matrix(
&self,
reference_box: Option<&Rect<ComputedLength>>,
) -> Result<Transform3D<f64>, ()>
fn to_3d_matrix( &self, reference_box: Option<&Rect<ComputedLength>>, ) -> Result<Transform3D<f64>, ()>
Return the equivalent 3d matrix.