Constructors
constructor
- new Triangle(a?, b?, c?): Triangle
Properties
a
b
c
Methods
Static
getNormal
- getNormal(a, b, c, target): Vector3
Static
getBarycoord
- getBarycoord(point, a, b, c, target): null | Vector3
Returns null | Vector3
Static
containsPoint
- containsPoint(point, a, b, c): boolean
Returns boolean
Static
getInterpolation
- getInterpolation(point, p1, p2, p3, v1, v2, v3, target): null | Vector2
Returns null | Vector2
- getInterpolation(point, p1, p2, p3, v1, v2, v3, target): null | Vector3
Returns null | Vector3
- getInterpolation(point, p1, p2, p3, v1, v2, v3, target): null | Vector4
Returns null | Vector4
Static
isFrontFacing
- isFrontFacing(a, b, c, direction): boolean
Returns boolean
set
- set(a, b, c): Triangle
setFromPointsAndIndices
- setFromPointsAndIndices(points, i0, i1, i2): this
Parameters
- points: Vector3[]
- i0: number
- i1: number
- i2: number
Returns this
setFromAttributeAndIndices
- setFromAttributeAndIndices(attribute, i0, i1, i2): this
Returns this
clone
- clone(): this
Returns this
copy
- copy(triangle): this
Returns this
getArea
- getArea(): number
Returns number
getMidpoint
- getMidpoint(target): Vector3
getNormal
- getNormal(target): Vector3
getPlane
- getPlane(target): Plane
getBarycoord
- getBarycoord(point, target): null | Vector3
Returns null | Vector3
getInterpolation
- getInterpolation(point, v1, v2, v3, target): null | Vector2
Returns null | Vector2
- getInterpolation(point, v1, v2, v3, target): null | Vector3
Returns null | Vector3
- getInterpolation(point, v1, v2, v3, target): null | Vector4
Returns null | Vector4
containsPoint
- containsPoint(point): boolean
Returns boolean
intersectsBox
- intersectsBox(box): boolean
Returns boolean
isFrontFacing
- isFrontFacing(direction): boolean
Returns boolean
closestPointToPoint
- closestPointToPoint(point, target): Vector3
equals
- equals(triangle): boolean
Returns boolean
Default