MCPcopy Create free account
hub / github.com/tdewolff/canvas / RectangleCell

Function RectangleCell

path_tiling.go:23–25  ·  view source on GitHub ↗

RectangleCell is a rectangular cell with width a and height b used for tiling.

(a, b float64)

Source from the content-addressed store, hash-verified

21
22// RectangleCell is a rectangular cell with width a and height b used for tiling.
23func RectangleCell(a, b float64) Matrix {
24 return Identity.Scale(a, b)
25}
26
27// RhombusCell is a rhombus cell with sides of length a at an angle of 120 degrees used for tiling.
28func RhombusCell(a float64) Matrix {

Callers

nothing calls this directly

Calls 1

ScaleMethod · 0.45

Tested by

no test coverage detected