class

Tres::Triangle

Inherits Reference < Object

Constructors

new(a = Tres::Vector3.new, b = Tres::Vector3.new, c = Tres::Vector3.new)
Source

Class methods

barycoord_from_point(point, a, b, c, target = Tres::Vector3.new)

static/instance method to calculate barycoordinates based on: http://www.blackpawn.com/texts/pointinpoly/default.html

Source
contains_point?(point, a, b, c)
Source
normal(a, b, c, target = Tres::Vector3.new)
Source

Instance methods

area
Source
barycoord_from_point(point, target = Tres::Vector3.new)
Source
clone
Source
contains_point?(point)
Source
copy(triangle)
Source
equals(triangle)
Source
midpoint(target = Tres::Vector3.new)
Source
normal(target = Tres::Vector3.new)
Source
plane(target = Tres::Plane.new)
Source
set(a, b, c)
Source
set_from_points_and_indices(points, i0, i1, i2)
Source