|
Molecular Vis
Improving perception of molecular visualization
|
Class for Frustum plane. More...
#include <FrustumPlane.h>
Public Member Functions | |
| FrustumPlane (const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3) | |
| void | set3Points (const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3) |
| float | distance (const glm::vec3 &p) const |
Class for Frustum plane.
| FrustumPlane::FrustumPlane | ( | const glm::vec3 & | v1, |
| const glm::vec3 & | v2, | ||
| const glm::vec3 & | v3 | ||
| ) |
Constructs frustum plane from three points. The orientation of the plane is defined by the order of the points, assumed counter-clockwise
| v1 | first point |
| v2 | second point |
| v3 | third point |
| float FrustumPlane::distance | ( | const glm::vec3 & | p | ) | const |
Calculates signed distance from plane.
| p | Coordinates of point to which the distance will be calculated. |
| void FrustumPlane::set3Points | ( | const glm::vec3 & | v1, |
| const glm::vec3 & | v2, | ||
| const glm::vec3 & | v3 | ||
| ) |
Updates frustum plane from three points. The orientation of the plane is defined by the order of the points, assumed counter-clockwise
| v1 | First point. |
| v2 | Second point. |
| v3 | Third point. |