Skip to content

on-yz coordinate bug #1020

@rambip

Description

@rambip

The draw.on-yz function should be named draw.on-zy, because the vector $(a, b)$ will be mapped to $a \vec{e_z} + b \vec{e_y}$.

Here is a proof:

#canvas(
  {
      draw.rotate(y: 90deg)
      draw.on-yz({
        draw.line((0, 0), (1, 0))
      })
  }
)

Since the world is rotated around y, y should not change and z should become x or -x

This means we expect this:

Image

But what we get is this:

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions