OffsetAxisUtil extension

Extension on Offset that provides various directional utilities.

on

Methods

axisOffset(Axis axis) double
Gets the component of this offset on axis.
crossAxisOffset(Axis axis) double
Gets the component of this offset crossing axis.
directionExtent(AxisDirection direction) double
Returns the extent towards direction.

Static Methods

create(Axis axis, double cross, double main) Offset
Creates an offset with the specified cross and main components.
direction(AxisDirection direction, double cross, double main) Offset
Creates an offset where main is the extent on direction and cross is the extent counter-clockwise to direction.