Anim 0.1
Loading...
Searching...
No Matches
picking.h
1#ifndef _PICKING_H
2#define _PICKING_H
3
4#include <maths/vector2.h>
5#include <maths/plane.h>
6
7#include "picking.h"
8
9namespace GefExtensions
10{
11 class RayHelper final
12 {
13 public:
14 static void GetScreenPosRay(gef::Vector2 const & screen_position, gef::Matrix44 const & projection, gef::Matrix44 const & view, gef::Vector4 & start_point, gef::Vector4 & direction, float screen_width, float screen_height, float ndc_z_min);
15 static bool RaySphereIntersect(gef::Vector4 const & start_point, gef::Vector4 const & direction, gef::Vector4 const & sphere_centre, float sphere_radius, gef::Vector4 & hitpoint);
16 static bool RayPlaneIntersect(gef::Vector4 & start_point, gef::Vector4 & direction, gef::Vector4 const & point_on_plane, gef::Vector4 const & plane_normal, gef::Vector4 & hitpoint);
17 };
18}
19#endif // _PICKING_H
Definition: picking.h:12