You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 67a7195
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: skills/math/SKILL.md
+65-26Lines changed: 65 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,36 +66,75 @@ Marshal in, compute, marshal out — and allocate on neither crossing. Keep the
66
66
67
67
### three.js
68
68
69
-
`Vector3`, `Quaternion`, `Matrix4`, and `Euler` all marshal through `toArray(target)` and `fromArray(source)`, and the component order matches `math`'s in every case. Always pass your scratch to `toArray` — called bare, it allocates a fresh array. Writing `object.matrix` directly needs `object.matrixAutoUpdate = false` and `object.matrixWorldNeedsUpdate = true`; otherwise marshal back through `position` / `quaternion` / `scale` and let three compose.
69
+
`Vector3`, `Quaternion`, `Matrix4`, and `Euler` all marshal through `toArray(target)` and `fromArray(source)`, and the component order matches `math`'s in every case. Always pass your scratch to `toArray` — called bare, it allocates a fresh array.
70
+
71
+
**Orbit camera.** The camera's state is a `Spherical` and a target the caller owns; three only ever sees the resulting position.
0 commit comments