Documentation
¶
Index ¶
- func Align[S Scalar](on Axis[S], frac, target S, shapes ...Shape[S])
- func Extent[S Scalar](bb BBox[S], axis Axis[S]) S
- func ExtentOf[S Scalar](s Shape[S], axis Axis[S]) S
- func ForceOf[S Scalar](s1, s2 Shape[S], axis Axis[S]) S
- func Frac[S Scalar](bb BBox[S], f S, axis Axis[S]) S
- func FracOf[S Scalar](s Shape[S], f S, axis Axis[S]) S
- func Gap[S Scalar](b1, b2 BBox[S], axis Axis[S]) S
- func GapOf[S Scalar](s1, s2 Shape[S], axis Axis[S]) S
- func Height[S Scalar](bb BBox[S]) S
- func MaxOf[S Scalar](s Shape[S], axis Axis[S]) S
- func MinOf[S Scalar](s Shape[S], axis Axis[S]) S
- func Spread[S Scalar](on Axis[S], frac, start, stop S, shapes ...Shape[S])
- func Width[S Scalar](bb BBox[S]) S
- type Axis
- type BBox
- type Border
- type Container
- type Rect
- type Scalar
- type Shape
- type XAxis
- type YAxis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceOf ¶
ForceOf computes the distance the two shapes would have to be moved apart alog the axis to avoid an overlap. The calculation takes into account possible margins that may be created by Borders.
func GapOf ¶
GapOf computes the gap along the axis between the bounding boxes of the two shapes s1 and s2.
Types ¶
Click to show internal directories.
Click to hide internal directories.