|
| float | MayaFlux::Kinesis::aspect_ratio (uint32_t width, uint32_t height) |
| | Aspect ratio from pixel dimensions.
|
| |
| bool | MayaFlux::Kinesis::in_bounds (double window_x, double window_y, uint32_t width, uint32_t height) |
| | Check if a window-space point is within bounds.
|
| |
| ViewTransform | MayaFlux::Kinesis::look_at (const glm::vec3 &eye, const glm::vec3 &target, const glm::vec3 &up=glm::vec3(0.0F, 1.0F, 0.0F)) |
| | Construct view matrix from eye position, target, and up vector.
|
| |
| ViewTransform | MayaFlux::Kinesis::look_at_perspective (const glm::vec3 &eye, const glm::vec3 &target, float fov_radians, float aspect, float near, float far, const glm::vec3 &up=glm::vec3(0.0F, 1.0F, 0.0F)) |
| | Construct complete ViewTransform from look-at and perspective parameters.
|
| |
| ViewTransform | MayaFlux::Kinesis::ortho (float left, float right, float bottom, float top, float near=-1.0F, float far=1.0F) |
| | Construct orthographic projection matrix.
|
| |
| ViewTransform | MayaFlux::Kinesis::perspective (float fov_radians, float aspect, float near, float far) |
| | Construct perspective projection matrix.
|
| |
| glm::vec3 | MayaFlux::Kinesis::to_ndc (double window_x, double window_y, uint32_t width, uint32_t height) |
| | Convert window pixel coordinates to NDC.
|
| |
| glm::vec3 | MayaFlux::Kinesis::to_ndc_aspect (double window_x, double window_y, uint32_t width, uint32_t height) |
| | Convert window pixel coordinates to NDC, corrected for aspect ratio.
|
| |
| glm::vec2 | MayaFlux::Kinesis::to_window (const glm::vec3 &ndc, uint32_t width, uint32_t height) |
| | Convert NDC to window pixel coordinates.
|
| |