View API
view package は camera と projection math を扱います。terminal y-scale は含みません。
Types
Camera3:eye、target、up。Viewport: output width / height。SensorSpec: millimeter 単位の sensor width / height。LensSpec: millimeter 単位の focal length と FOV helpers。WorldUnit: world-space 1 unit が表す meters。ScientificCamera:Camera3+ sensor + lens + world unit。PerspectiveProjection: perspective projection。OrthographicProjection: orthographic projection。ProjectedVertex: projectedx、y、depth。
API
Camera3::look_at(eye, target, up)Camera3::default(distance)Camera3::view_transform()world_to_camera_point/world_to_camera_directionSensorSpec::apsc/SensorSpec::full_frame/SensorSpec::medium_formatSensorSpec::customLensSpec::newhorizontal_fov/vertical_fov/diagonal_fovWorldUnit::newScientificCamera::autoScientificCamera::to_perspective_projectionPerspectiveProjection::project_pointOrthographicProjection::project_pointinterpolate_perspective_depth: barycentric weights から reciprocal-depth interpolation を行い、無効 depth では linear fallback を使います。