Module Gg.Size2
type t= size2The type for 2D sizes.
val dim : intdimis the dimension of sizes of typesize2.
Constructors, accessors and constants
val v : float -> float -> size2v w his a size of widthwand heighth.
val w : size2 -> floatw sis the width ofs.
val h : size2 -> floath sis the height ofs.
val zero : size2zerois the zero size, zero width and height.
val unit : size2unitis the unit size, one width and height.
Functions
val aspect : size2 -> floataspect sisw s /. h s.
val of_w : float -> aspect:float -> size2of_w w aspectisv w (w /. aspect).
val of_h : float -> aspect:float -> size2of_h h aspectisv (h *. aspect) h.