Molecular Vis
Improving perception of molecular visualization
FrustumPlane.h
1 // inspired by http://www.lighthouse3d.com/tutorials/view-frustum-culling/
2 #pragma once
3 #include "glm/glm.hpp"
4 
9 class FrustumPlane {
10 private:
11  glm::vec3 normal, point;
12  float d;
13 
14 public:
23  FrustumPlane(const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3);
24  FrustumPlane(void);
33  void set3Points(const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3);
40  float distance(const glm::vec3 &p) const;
41 };
42 
43 
void set3Points(const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3)
Definition: FrustumPlane.cpp:13
Class for Frustum plane.
Definition: FrustumPlane.h:9
float distance(const glm::vec3 &p) const
Definition: FrustumPlane.cpp:27