Type Alias style::values::computed::motion::RayFunction

source ·
pub type RayFunction = GenericRayFunction<Angle, Position>;
Expand description

The computed value of ray() function.

Aliased Type§

struct RayFunction {
    pub angle: Angle,
    pub size: RaySize,
    pub contain: bool,
    pub position: GenericPositionOrAuto<GenericPosition<LengthPercentage, LengthPercentage>>,
}

Fields§

§angle: Angle

The bearing angle with 0deg pointing up and positive angles representing clockwise rotation.

§size: RaySize

Decide the path length used when offset-distance is expressed as a percentage.

§contain: bool

Clamp offset-distance so that the box is entirely contained within the path.

§position: GenericPositionOrAuto<GenericPosition<LengthPercentage, LengthPercentage>>

The “at ” part. If omitted, we use auto to represent it.