Docs.rs
ambient_api-0.2.1
ambient_api 0.2.1
Docs.rs crate page
MIT OR Apache-2.0
Links
Documentation
Repository
crates.io
Source
Owners
FredrikNoren
github:ambientrun:owners
Dependencies
ambient_api_core ^0.2.1
normal
ambient_cb ^0.2.1
normal
ambient_editor_derive ^0.2.1
normal
ambient_element ^0.2.1
normal
ambient_ui ^0.2.1
normal
anyhow ^1.0
normal
futures ^0.3
normal
glam ^0.22.0
normal
once_cell ^1.15.0
normal
rand ^0.8.5
normal
Versions
50%
of the crate is documented
Go to latest version
Platform
wasm32-wasi
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module camera
Functions
?
Module
ambient_api
::
camera
source
·
[
−
]
Expand description
[Client-only]
Helper functions for the camera.
Functions
clip_space_ray
Converts clip-space coordinates to a
Ray
in world space.
screen_to_clip_space
Converts a screen position (e.g. mouse position) to clip-space coordinates for the window.
screen_to_world_direction
Converts a screen position (e.g. mouse position) to a
Ray
in world space.
world_to_screen
Converts a world-space position to a screen position (e.g. mouse position).