#include <camera.h>
Definition at line 15 of file camera.h.
◆ GetTransform()
Matrix impeller::scene::Camera::GetTransform |
( |
ISize |
target_size | ) |
const |
Definition at line 24 of file camera.cc.
24 {
25 if (transform_.has_value()) {
26 return transform_.value();
27 }
28
31
32 return transform_.value();
33}
static constexpr Matrix MakePerspective(Radians fov_y, Scalar aspect_ratio, Scalar z_near, Scalar z_far)
static constexpr Matrix MakeLookAt(Vector3 position, Vector3 target, Vector3 up)
◆ LookAt()
Definition at line 17 of file camera.cc.
17 {
18 Camera camera = *this;
20 camera.up_ = up;
21 return camera;
22}
◆ MakePerspective()
Definition at line 10 of file camera.cc.
10 {
11 Camera camera;
12 camera.fov_y_ = fov_y;
13 camera.position_ = position;
14 return camera;
15}
The documentation for this class was generated from the following files: