Molecular Vis
Improving perception of molecular visualization
FrustumPlane Class Reference

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
 

Detailed Description

Class for Frustum plane.

Constructor & Destructor Documentation

◆ FrustumPlane()

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

Parameters
v1first point
v2second point
v3third point

Member Function Documentation

◆ distance()

float FrustumPlane::distance ( const glm::vec3 &  p) const

Calculates signed distance from plane.

Parameters
pCoordinates of point to which the distance will be calculated.
Returns
The signed distance from the plane to the point.

◆ set3Points()

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

Parameters
v1First point.
v2Second point.
v3Third point.

The documentation for this class was generated from the following files: