~ubuntu-branches/debian/stretch/gource/stretch

« back to all changes in this revision

Viewing changes to src/core/plane.cpp

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2013-05-13 09:58:33 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20130513095833-1r8t89oflvhqxwny
Tags: 0.40-1
* New upstream release.
* Added dpkg-buildflags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    vec3 edge1 = v1 - v2;
36
36
    vec3 edge2 = v3 - v2;
37
37
 
38
 
    normal = normalise(glm::cross(edge2, edge1));
39
 
 
 
38
    normal = glm::normalize(glm::cross(edge2, edge1));
40
39
    point = v2;
41
40
 
42
41
    d = -(glm::dot(normal, point));
43
42
}
44
43
 
45
 
float Plane::distance(const vec3 & p) const{
 
44
float Plane::distance(const vec3 & p) const {
46
45
    return d + glm::dot(normal, p);
47
46
}
48
47