12 camera.fov_y_ = fov_y;
13 camera.position_ = position;
25 if (transform_.has_value()) {
26 return transform_.value();
32 return transform_.value();
static Camera MakePerspective(Radians fov_y, Vector3 position)
Camera LookAt(Vector3 target, Vector3 up=Vector3(0, -1, 0)) const
Matrix GetTransform(ISize target_size) const
A 4x4 matrix using column-major storage.
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)