光折射模拟器

概要

通过可调参数模拟光在介质交界处的折射现象。

提示

设计一个模拟器,展示光在两种介质边界处的折射现象。模拟器应包含一个位于模拟区域下方的带有滑块的表单。滑块允许用户调整入射角(0–90度)、介质1的折射率(1–2)以及介质2的折射率(1–2)。光线动画应实时更新,以动态显示折射角度。

原始提示

Design a simulator showing light refracting at the boundary between two media. Add a form with sliders for angle of incidence (0–90 degrees), refractive index of medium 1 (1–2), and refractive index of medium 2 (1–2). Animate the light ray and display the angle of refraction dynamically.

Q: Where should the form with sliders be positioned relative to the simulation area (e.g., on the side or below)?
A: below

Q: Should the light ray animation update in real time as the slider values change, or only after adjusting the sliders?
A: real time

生成成本概要

模型名称: o3-mini-medium

响应时间: 22.42 sec.

结果令牌: 3,218

成本: $0.01463550