22#ifndef EOS_RENDER_TRANSFORMS_HPP
23#define EOS_RENDER_TRANSFORMS_HPP
51 const float x_ss = (clip_coordinates[0] + 1.0f) * (screen_width / 2.0f);
53 screen_height - (clip_coordinates[1] + 1.0f) *
54 (screen_height / 2.0f);
55 return Eigen::Vector2f(x_ss, y_ss);
68Eigen::Vector2<T>
clip_to_screen_space(
const T clip_coord_x,
const T clip_coord_y,
int screen_width,
72 const T x_ss = (clip_coord_x + T(1)) * (screen_width / 2.0);
74 screen_height - (clip_coord_y + T(1)) *
75 (screen_height / 2.0);
76 return Eigen::Vector2<T>(x_ss, y_ss);
Eigen::Vector2f clip_to_screen_space(const Eigen::Vector2f &clip_coordinates, int screen_width, int screen_height)
Definition: transforms.hpp:47
core::Image4u render(const core::Mesh &mesh, const Eigen::Matrix4f &model_view_matrix, const Eigen::Matrix4f &projection_matrix, int viewport_width, int viewport_height, bool enable_backface_culling=false, bool enable_near_clipping=true, bool enable_far_clipping=true)
Definition: render.hpp:52
Namespace containing all of eos's 3D model fitting functionality.