Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/Three.js>Triangle

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Triangle
Re-export
import { Triangle } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";

Constructors

new
Triangle(
a?: Vector3,
b?: Vector3,
c?: Vector3,
)

Methods

clone(): this
containsPoint(point: Vector3): boolean
copy(triangle: Triangle): this
equals(triangle: Triangle): boolean
getArea(): number
getPlane(target: Plane): Plane
getUV(
point: Vector3,
uv1: Vector2,
uv2: Vector2,
uv3: Vector2,
target: Vector2,
): Vector2
intersectsBox(box: Box3): boolean
isFrontFacing(direction: Vector3): boolean
setFromPointsAndIndices(
points: Vector3[],
i0: number,
i1: number,
i2: number,
): Triangle

Static Methods

containsPoint(
point: Vector3,
): boolean
getUV(
point: Vector3,
p1: Vector3,
p2: Vector3,
p3: Vector3,
uv1: Vector2,
uv2: Vector2,
uv3: Vector2,
target: Vector2,
): Vector2
isFrontFacing(
direction: Vector3,
): boolean