Expand description
Generic types for CSS values that are related to transformations.
Re-exports§
pub use self::GenericMatrix as Matrix;pub use self::GenericMatrix3D as Matrix3D;pub use self::GenericTransformOrigin as TransformOrigin;pub use self::GenericPerspectiveFunction as PerspectiveFunction;pub use self::GenericTransformOperation as TransformOperation;pub use self::GenericTransform as Transform;pub use self::GenericRotate as Rotate;pub use self::GenericScale as Scale;pub use self::GenericTranslate as Translate;
Structs§
- Generic
Matrix  - A generic 2D transformation matrix.
 - Generic
Matrix3D  - Generic
Transform  - A value of the 
transformproperty - Generic
Transform Origin  - A generic transform origin.
 
Enums§
- Generic
Perspective Function  - A value for the 
perspective()transform function, which is either a non-negative<length>ornone. - Generic
Rotate  - A value of the 
Rotateproperty - Generic
Scale  - A value of the 
Scaleproperty - Generic
Transform Operation  - A single operation in the list of a 
transformvalue - Generic
Translate  - A value of the 
translateproperty - Transform
Style  
Traits§
- IsParallel
To  - A trait to check if the current 3D vector is parallel to the DirectionVector. This is especially for serialization on Rotate.
 - ToAbsolute
Length  - Convert a length type into the absolute lengths.
 - ToMatrix
 - Support the conversion to a 3d matrix.
 - ToRadians
 - A little helper to deal with both specified and computed angles.
 
Functions§
- create_
perspective_ matrix  - Return the transform matrix from a perspective length.
 - get_
normalized_ vector_ and_ angle  - Return the normalized direction vector and its angle for Rotate3D.
 - is_same 🔒
 - y_
axis_ 🔒and_ z_ axis_ are_ zero