Class Triangle

Index

Constructor methods

Properties

Methods

Constructor methods

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

Parameters

Returns

Triangle

Properties

public a: Vector3

public b: Vector3

public c: Vector3

Methods

public area(): number

Returns

number

public barycoordFromPoint(point: Vector3, optionalTarget?: Vector3): Vector3

Parameters

Returns

Vector3

public static barycoordFromPoint(point: Vector3, a: Vector3, b: Vector3, c: Vector3, optionalTarget: Vector3): Vector3

Parameters

Returns

Vector3

public clone(): Triangle

Returns

Triangle

public static containsPoint(point: Vector3, a: Vector3, b: Vector3, c: Vector3): boolean

Parameters

Returns

boolean

public containsPoint(point: Vector3): boolean

Parameters

Returns

boolean

public copy(triangle: Triangle): Triangle

Parameters

Returns

Triangle

public equals(triangle: Triangle): boolean

Parameters

Returns

boolean

public midpoint(optionalTarget?: Vector3): Vector3

Parameters

  • optionalTarget?: Vector3 optional

Returns

Vector3

public normal(optionalTarget?: Vector3): Vector3

Parameters

  • optionalTarget?: Vector3 optional

Returns

Vector3

public static normal(a: Vector3, b: Vector3, c: Vector3, optionalTarget?: Vector3): Vector3

Parameters

Returns

Vector3

public plane(optionalTarget?: Vector3): Plane

Parameters

  • optionalTarget?: Vector3 optional

Returns

Plane

public set(a: Vector3, b: Vector3, c: Vector3): Triangle

Parameters

Returns

Triangle

public setFromPointsAndIndices(points: Vector3[], i0: number, i1: number, i2: number): Triangle

Parameters

  • points: Vector3[]
  • i0: number
  • i1: number
  • i2: number

Returns

Triangle