jitx/shapes/Dims¶
Package name: jitx/shapes/Dims
Summary¶
Dims¶
Dimensions
Functions¶
| Function | Description |
|---|---|
| transpose | Create the dimensions which swap the X and Y dimensions of a. |
| enlarge | Create the dimensions which are the dimensions of a multiplied by b. |
| min | Create the dimensions which are the minimum for each dimension of a and b. |
| max | Create the dimensions which are the maximum for each dimension of a and b. |
Definitions¶
Dims¶
Dimensions
public defstruct Dims <: Equalable & Hashable :
x: Double
y: Double
-
x: Double- X-axis dimension Also known as width. -
y: Double- Y-axis dimension Also known as length or height.
Specifies the horizontal and vertical extents of an object, usually a shape.
Functions¶
transpose¶
Create the dimensions which swap the X and Y dimensions of a.
public defn transpose (a:Dims) -> Dims
- Returns
Dims
enlarge¶
Create the dimensions which are the dimensions of a multiplied by b.
public defn enlarge (a:Dims, b:Double) -> Dims
- Returns
Dims
min¶
Create the dimensions which are the minimum for each dimension of a and b.
public defn min (a:Dims, b:Dims) -> Dims
- Returns
Dims
max¶
Create the dimensions which are the maximum for each dimension of a and b.
public defn max (a:Dims, b:Dims) -> Dims
- Returns
Dims
Related Packages¶
Forwarded by packages: jitx/shapes, jitx