High-Dimensional Silicon Geometry
Rotate and project 3D vertices using high-precision hardware trigonometry in std/math.aayu.
aayu
import "std/math.aayu"
import "std/media.aayu"
let yaw = 0.785398 # 45 deg
let pitch = 0.349065 # 20 deg
let pt = project_3d_to_2d(2.0, 1.5, -1.0, yaw, pitch, 250.0, 800.0, 600.0)
print("Screen U: " + pt["u"])
print("Screen V: " + pt["v"])
print("Depth: " + pt["depth"])Expected coordinates: U around 485.3 px, V around 347.1 px.