discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

writeGhostMatrix function

void writeGhostMatrix(
  1. Float64List m,
  2. Transform2 p,
  3. Vector2 origin
)

Writes translate(−origin) ∘ p into m, an identity-initialised column-major 4×4 (canvas.transform's layout): the linear part of p in [0] [1] [4] [5], its translation less origin in [12] [13]. Composed in doubles; the other ten entries are left as they are.

Implementation

void writeGhostMatrix(Float64List m, Transform2 p, Vector2 origin) {
  _writeLinear(m, p);
  _writeTranslation(m, p, origin);
}