class OpenGL::Triangle
- OpenGL::Triangle
- Reference
- Object
Defined in:
opengl/math/triangle.crConstructors
Class Method Summary
-
.barycoord_from_point(point, a, b, c, target = OpenGL::Vector3.new)
static/instance method to calculate barycoordinates based on: http://www.blackpawn.com/texts/pointinpoly/default.html
- .contains_point?(point, a, b, c)
- .normal(a, b, c, target = OpenGL::Vector3.new)
Instance Method Summary
- #a : OpenGL::Vector3
- #a=(a : OpenGL::Vector3)
- #area
- #b : OpenGL::Vector3
- #b=(b : OpenGL::Vector3)
- #barycoord_from_point(point, target = OpenGL::Vector3.new)
- #c : OpenGL::Vector3
- #c=(c : OpenGL::Vector3)
- #clone
- #contains_point?(point)
- #copy(triangle)
- #equals(triangle)
- #midpoint(target = OpenGL::Vector3.new)
- #normal(target = OpenGL::Vector3.new)
- #plane(target = OpenGL::Plane.new)
- #set(a, b, c)
- #set_from_points_and_indices(points, i0, i1, i2)
Constructor Detail
Class Method Detail
static/instance method to calculate barycoordinates based on: http://www.blackpawn.com/texts/pointinpoly/default.html