Constructors
constructor
- new Triangle(a?, b?, c?): Triangle
Properties
a
b
c
Methods
clone
- clone(): this
Returns this
closestPointToPoint
- closestPointToPoint(point, target): Vector3
containsPoint
- containsPoint(point): boolean
Returns boolean
copy
- copy(triangle): this
Returns this
equals
- equals(triangle): boolean
Returns boolean
getArea
- getArea(): number
Returns number
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
getMidpoint
- getMidpoint(target): Vector3
getNormal
- getNormal(target): Vector3
getPlane
- getPlane(target): Plane
getUV
- getUV(point, uv1, uv2, uv3, target): Vector2
intersectsBox
- intersectsBox(box): boolean
Returns boolean
isFrontFacing
- isFrontFacing(direction): boolean
Returns boolean
set
- set(a, b, c): Triangle
setFromAttributeAndIndices
- setFromAttributeAndIndices(attribute, i0, i1, i2): this
Returns this
setFromPointsAndIndices
- setFromPointsAndIndices(points, i0, i1, i2): this
Parameters
- points: Vector3[]
- i0: number
- i1: number
- i2: number
Returns this
Static
containsPoint
- containsPoint(point, a, b, c): boolean
Returns boolean
Static
getBarycoord
- getBarycoord(point, a, b, c, target): null | Vector3
Returns null | Vector3
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
getNormal
- getNormal(a, b, c, target): Vector3
Static
getUV
- getUV(point, p1, p2, p3, uv1, uv2, uv3, target): Vector2
Static
isFrontFacing
- isFrontFacing(a, b, c, direction): boolean
Returns boolean
Default