Skip to content

Class: Navi3DTriangle

Vector 3D

Hierarchy

Implements

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Navi3DTriangle(Id, edgeA, edgeB, edgeC): Navi3DTriangle

Parameters

NameType
Idnumber
edgeANavi3DEdge
edgeBNavi3DEdge
edgeCNavi3DEdge

Returns

Navi3DTriangle

Overrides

Vector3.constructor

Defined in

src/math/navigation/Navi3DTriangle.ts:62

Properties

MAX

Static Readonly MAX: Vector3

Vector maximum

Inherited from

Vector3.MAX

Defined in

src/math/Vector3.ts:11


MIN

Static Readonly MIN: Vector3

Vector minimum

Inherited from

Vector3.MIN

Defined in

src/math/Vector3.ts:16


SAFE_MAX

Static Readonly SAFE_MAX: Vector3

Vector maximum integer value

Inherited from

Vector3.SAFE_MAX

Defined in

src/math/Vector3.ts:21


SAFE_MIN

Static Readonly SAFE_MIN: Vector3

Vector minimum integer value

Inherited from

Vector3.SAFE_MIN

Defined in

src/math/Vector3.ts:26


X_AXIS

Static Readonly X_AXIS: Vector3

X axis positive axis coordinate (1, 0, 0).

Inherited from

Vector3.X_AXIS

Defined in

src/math/Vector3.ts:31


neg_X_AXIS

Static Readonly neg_X_AXIS: Vector3

The X-axis is negative (-1, 0, 0).

Inherited from

Vector3.neg_X_AXIS

Defined in

src/math/Vector3.ts:36


Y_AXIS

Static Readonly Y_AXIS: Vector3

The y axis defined as a Vector3 object with coordinates (0,1,0).

Inherited from

Vector3.Y_AXIS

Defined in

src/math/Vector3.ts:41


Z_AXIS

Static Readonly Z_AXIS: Vector3

The z axis defined as a Vector3 object with coordinates (0,0,1).

Inherited from

Vector3.Z_AXIS

Defined in

src/math/Vector3.ts:46


x

x: number = 0

The first element of a Vector3 object, such as the x coordinate of a point in the three-dimensional space. The default value is 0.

Inherited from

Vector3.x

Defined in

src/math/Vector3.ts:148


y

y: number = 0

The second element of a Vector3 object, such as the y coordinate of a point in the three-dimensional space. The default value is 0.

Inherited from

Vector3.y

Defined in

src/math/Vector3.ts:154


z

z: number = 0

The third element of a Vector3 object, such as the y coordinate of a point in the three-dimensional space. The default value is 0.

Inherited from

Vector3.z

Defined in

src/math/Vector3.ts:160


w

w: number = 1

The z component of the vector, A three-dimensional position or projection that can be used as a perspective projection We can also do w in the quaternion

Inherited from

Vector3.w

Defined in

src/math/Vector3.ts:167


f

f: number = 0

Defined in

src/math/navigation/Navi3DTriangle.ts:29


gg

gg: number = 0

Defined in

src/math/navigation/Navi3DTriangle.ts:31


h

h: number = 0

Defined in

src/math/navigation/Navi3DTriangle.ts:33


parent

parent: Navi3DTriangle

Defined in

src/math/navigation/Navi3DTriangle.ts:35


costMultiplier

costMultiplier: number = 1.0

Defined in

src/math/navigation/Navi3DTriangle.ts:37


openId

openId: number = 0

Defined in

src/math/navigation/Navi3DTriangle.ts:39


closeId

closeId: number = 0

Defined in

src/math/navigation/Navi3DTriangle.ts:41

Accessors

ZERO

get ZERO(): Vector3

Returns a new vector with zero x, y, and z components

Returns

Vector3

Inherited from

Vector3.ZERO

Defined in

src/math/Vector3.ts:91


ONE

get ONE(): Vector3

Returns a new vector whose x, y, and z components are all 1

Returns

Vector3

Inherited from

Vector3.ONE

Defined in

src/math/Vector3.ts:98


LEFT

get LEFT(): Vector3

Returns a new vector pointing to the left, x is -1, y is 0, and z is 0

Returns

Vector3

Inherited from

Vector3.LEFT

Defined in

src/math/Vector3.ts:105


get RIGHT(): Vector3

Returns a new vector pointing in the right direction, where x is 1, y is 0, and z is 0

Returns

Vector3

Inherited from

Vector3.RIGHT

Defined in

src/math/Vector3.ts:112


UP

get UP(): Vector3

Returns a new vector pointing upwards, that is, x equals 0, y equals 1, and z equals 0

Returns

Vector3

Inherited from

Vector3.UP

Defined in

src/math/Vector3.ts:119


DOWN

get DOWN(): Vector3

Returns a new vector pointing down, where x is 0, y is -1, and z is 0

Returns

Vector3

Inherited from

Vector3.DOWN

Defined in

src/math/Vector3.ts:126


BACK

get BACK(): Vector3

Returns a new backward vector, x equals 0, y equals 0, and z equals negative 1

Returns

Vector3

Inherited from

Vector3.BACK

Defined in

src/math/Vector3.ts:133


FORWARD

get FORWARD(): Vector3

Returns a new forward-pointing vector, that is, x is 0, y is 0, and z is 1

Returns

Vector3

Inherited from

Vector3.FORWARD

Defined in

src/math/Vector3.ts:140


a

get a(): number

get the w component

Returns

number

value of w

Inherited from

Vector3.a

Defined in

src/math/Vector3.ts:233

set a(value): void

Set w component

Parameters

NameType
valuenumber

Returns

void

Inherited from

Vector3.a

Defined in

src/math/Vector3.ts:201


r

get r(): number

get the x component

Returns

number

value of x

Inherited from

Vector3.r

Defined in

src/math/Vector3.ts:241

set r(value): void

Set x component

Parameters

NameType
valuenumber

Returns

void

Inherited from

Vector3.r

Defined in

src/math/Vector3.ts:209


g

get g(): number

get the y component

Returns

number

value of y

Inherited from

Vector3.g

Defined in

src/math/Vector3.ts:249

set g(value): void

Set the y component

Parameters

NameType
valuenumber

Returns

void

Inherited from

Vector3.g

Defined in

src/math/Vector3.ts:217


b

get b(): number

get the z component

Returns

number

value of z

Inherited from

Vector3.b

Defined in

src/math/Vector3.ts:257

set b(value): void

Set z component

Parameters

NameType
valuenumber

Returns

void

Inherited from

Vector3.b

Defined in

src/math/Vector3.ts:225


length

get length(): number

The length of the vector, the distance from the origin (0, 0, 0) to (x, y, z)

Returns

number

Inherited from

Vector3.length

Defined in

src/math/Vector3.ts:264


lengthSquared

get lengthSquared(): number

You get the square of the length of the vector

Returns

number

Inherited from

Vector3.lengthSquared

Defined in

src/math/Vector3.ts:272


position

get position(): this

Get the current vector

Returns

this

Inherited from

Vector3.position

Defined in

src/math/Vector3.ts:279


aabb

get aabb(): QuadAABB

Returns

QuadAABB

Implementation of

IQuadNode.aabb

Defined in

src/math/navigation/Navi3DTriangle.ts:43


isTriangle

get isTriangle(): boolean

Returns

boolean

Implementation of

IQuadNode.isTriangle

Defined in

src/math/navigation/Navi3DTriangle.ts:58


id

get id(): number

Returns

number

Defined in

src/math/navigation/Navi3DTriangle.ts:104


plane

get plane(): Plane3D

Returns

Plane3D

Implementation of

IQuadNode.plane

Defined in

src/math/navigation/Navi3DTriangle.ts:108


points

get points(): Navi3DPoint[]

Returns

Navi3DPoint[]

Defined in

src/math/navigation/Navi3DTriangle.ts:112


walkAble

get walkAble(): boolean

Returns

boolean

Defined in

src/math/navigation/Navi3DTriangle.ts:157


edges

get edges(): Navi3DEdge[]

Returns

Navi3DEdge[]

Defined in

src/math/navigation/Navi3DTriangle.ts:161

Methods

getTowPointbyDir

getTowPointbyDir(dir, tp1, tp2, width, aix): void

Obtain a vertical line segment with width through an orientation

Parameters

NameType
dirVector3
tp1Vector3
tp2Vector3
widthnumber
aixVector3

Returns

void

Inherited from

Vector3.getTowPointbyDir

Defined in

src/math/Vector3.ts:290


pointToLine

pointToLine(point1, point2, position): number

Calculate the distance from the point to the line

Parameters

NameTypeDescription
point1Vector3Starting point of line segment
point2Vector3End point of line segment
positionVector3Point position

Returns

number

Distance from a point to a line segment

Inherited from

Vector3.pointToLine

Defined in

src/math/Vector3.ts:319


dot

dot(a, b): number

Take the dot product of two vectors.

Parameters

NameTypeDescription
aVector3Vector a
bVector3Vector b

Returns

number

Inherited from

Vector3.dot

Defined in

src/math/Vector3.ts:353


getPoints

getPoints(total, randSeed): any[]

Parameters

NameType
totalnumber
randSeednumber

Returns

any[]

Inherited from

Vector3.getPoints

Defined in

src/math/Vector3.ts:357


getPointNumbers

getPointNumbers(total, randSeed): any[]

Parameters

NameType
totalnumber
randSeednumber

Returns

any[]

Inherited from

Vector3.getPointNumbers

Defined in

src/math/Vector3.ts:366


getAngle

getAngle(from, to): number

Returns the Angle, in degrees, between the source vector and the target vector.

Parameters

NameTypeDescription
fromVector3source vector.
toVector3target vector.

Returns

number

Inherited from

Vector3.getAngle

Defined in

src/math/Vector3.ts:380


sqrMagnitude

sqrMagnitude(arg0): number

Parameters

NameType
arg0Vector3

Returns

number

Inherited from

Vector3.sqrMagnitude

Defined in

src/math/Vector3.ts:385


getZYAngle

getZYAngle(zd, yd): number

Parameters

NameType
zdVector3
ydVector3

Returns

number

Inherited from

Vector3.getZYAngle

Defined in

src/math/Vector3.ts:389


sub

sub(a, b, target?): Vector3

Subtract two vectors

Parameters

NameTypeDefault valueDescription
aVector3undefinedVector a
bVector3undefinedVector b
targetVector3nulloutput vector

Returns

Vector3

Inherited from

Vector3.sub

Defined in

src/math/Vector3.ts:399


add

add(a, b, target?): Vector3

Add two vectors

Parameters

NameTypeDefault valueDescription
aVector3undefinedVector a
bVector3undefinedVector b
targetVector3nulloutput vector

Returns

Vector3

Inherited from

Vector3.add

Defined in

src/math/Vector3.ts:415


distance

distance(pt1, pt2): number

Calculate the distance between two vectors

Parameters

NameTypeDescription
pt1Vector3Vector 1
pt2Vector3Vector 2

Returns

number

number The distance between two vectors

Inherited from

Vector3.distance

Defined in

src/math/Vector3.ts:458


squareDistance

squareDistance(pt1, pt2): number

Calculate the square distance between two vectors

Parameters

NameTypeDescription
pt1Vector3Vector 1
pt2Vector3Vector 2

Returns

number

number The square distance between two vectors

Inherited from

Vector3.squareDistance

Defined in

src/math/Vector3.ts:471


distanceXZ

distanceXZ(pt1, pt2): number

Calculate the distance between two vectors XZ axes

Parameters

NameTypeDescription
pt1Vector3Vector 1
pt2Vector3Vector 2

Returns

number

number The distance between two vectors

Inherited from

Vector3.distanceXZ

Defined in

src/math/Vector3.ts:483


set

set(x, y, z, w?): Navi3DTriangle

Sets the current vector x, y, z, and w components

Parameters

NameTypeDefault value
xnumberundefined
ynumberundefined
znumberundefined
wnumber1

Returns

Navi3DTriangle

Inherited from

Vector3.set

Defined in

src/math/Vector3.ts:498


add

add(a, target?): Vector3

The vector is added to the vector

Parameters

NameTypeDefault valueDescription
aVector3undefinedAdditive vector
targetVector3nullReturn vector

Returns

Vector3

result

Inherited from

Vector3.add

Defined in

src/math/Vector3.ts:512


subVectors

subVectors(a, b): this

Parameters

NameType
aVector3
bVector3

Returns

this

Inherited from

Vector3.subVectors

Defined in

src/math/Vector3.ts:527


addScalar

addScalar(scalar): Vector3

Parameters

NameType
scalarnumber

Returns

Vector3

Inherited from

Vector3.addScalar

Defined in

src/math/Vector3.ts:534


subScalar

subScalar(scalar): Vector3

Parameters

NameType
scalarnumber

Returns

Vector3

Inherited from

Vector3.subScalar

Defined in

src/math/Vector3.ts:541


min

min(v, target?): Vector3

Parameters

NameType
vVector3
targetVector3

Returns

Vector3

Inherited from

Vector3.min

Defined in

src/math/Vector3.ts:548


max

max(v, target?): Vector3

Parameters

NameType
vVector3
targetVector3

Returns

Vector3

Inherited from

Vector3.max

Defined in

src/math/Vector3.ts:555


distanceToSquared

distanceToSquared(v): number

Parameters

NameType
vVector3

Returns

number

Inherited from

Vector3.distanceToSquared

Defined in

src/math/Vector3.ts:562


addXYZW

addXYZW(x, y, z, w, target?): Vector3

Parameters

NameTypeDefault value
xnumberundefined
ynumberundefined
znumberundefined
wnumberundefined
targetVector3null

Returns

Vector3

Inherited from

Vector3.addXYZW

Defined in

src/math/Vector3.ts:569


clone

clone(): Vector3

Clone a vector with the same components as the current vector

Returns

Vector3

Inherited from

Vector3.clone

Defined in

src/math/Vector3.ts:587


copyFrom

copyFrom(src): Vector3

The components of the source vector are set to the current vector

Parameters

NameTypeDescription
srcVector3Original vector

Returns

Vector3

Inherited from

Vector3.copyFrom

Defined in

src/math/Vector3.ts:596


decrementBy

decrementBy(a): void

Subtract two vectors and assign the result to yourself

Parameters

NameTypeDescription
aVector3Minus vector

Returns

void

Inherited from

Vector3.decrementBy

Defined in

src/math/Vector3.ts:609


dotProduct

dotProduct(a): number

Calculate the dot product of two vectors and return the Angle relationship between the two vectors

Parameters

NameTypeDescription
aVector3The vector that you need to compute

Returns

number

number Returns the Angle relationship between two vectors

Inherited from

Vector3.dotProduct

Defined in

src/math/Vector3.ts:621


equals

equals(toCompare, allFour?): boolean

Find whether the values of two vectors are identical

Parameters

NameTypeDefault valueDescription
toCompareVector3undefinedThe vector to compare
allFourbooleanfalseThe default parameter is 1, whether to compare the w component

Returns

boolean

A value of true if the specified Vector3 object is equal to the current Vector3 object; false if it is not equal.

Inherited from

Vector3.equals

Defined in

src/math/Vector3.ts:643


incrementBy

incrementBy(a): void

The current vector plus is equal to the vector, plus just the x, y, and z components

Parameters

NameTypeDescription
aVector3vector

Returns

void

Inherited from

Vector3.incrementBy

Defined in

src/math/Vector3.ts:663


divide

divide(v): Vector3

The current vector divided by the vector or component

Parameters

NameTypeDescription
vanyThe vector or component that you want to divide

Returns

Vector3

Vector3 Returns the result of the calculation

Inherited from

Vector3.divide

Defined in

src/math/Vector3.ts:675


negate

negate(): Navi3DTriangle

Sets the current Vector3 object to its inverse. The inverse object is also considered the opposite of the original object. The value of the x, y, and z properties of the current Vector3 object is changed to -x, -y, and -z.

Returns

Navi3DTriangle

Inherited from

Vector3.negate

Defined in

src/math/Vector3.ts:692


normalize

normalize(thickness?): Vector3

Scales the line segment between(0,0) and the current point to a set length.

Parameters

NameTypeDefault valueDescription
thicknessnumber1The scaling value. For example, if the current Vector3 object is (0,3,4), and you normalize it to 1, the point returned is at(0,0.6,0.8).

Returns

Vector3

Inherited from

Vector3.normalize

Defined in

src/math/Vector3.ts:707


applyQuaternion

applyQuaternion(q): Navi3DTriangle

Apply the rotation quaternion

Parameters

NameTypeDescription
qanyquaternion

Returns

Navi3DTriangle

Inherited from

Vector3.applyQuaternion

Defined in

src/math/Vector3.ts:724


applyMatrix4

applyMatrix4(m): Vector3

Parameters

NameType
many

Returns

Vector3

Inherited from

Vector3.applyMatrix4

Defined in

src/math/Vector3.ts:749


scaleBy

scaleBy(s): Vector3

Scales the current Vector3 object by a scalar, a magnitude. The Vector3 object's x, y, and z elements are multiplied by the scalar number specified in the parameter. For example, if the vector is scaled by ten, the result is a vector that is ten times longer. The scalar can also change the direction of the vector. Multiplying the vector by a negative number reverses its direction.

Parameters

NameTypeDescription
snumberA multiplier (scalar) used to scale a Vector3 object.

Returns

Vector3

Inherited from

Vector3.scaleBy

Defined in

src/math/Vector3.ts:763


mul

mul(s): Vector3

The current vector times the scalar s

Parameters

NameTypeDescription
snumberscalar s

Returns

Vector3

Inherited from

Vector3.mul

Defined in

src/math/Vector3.ts:775


scale

scale(s): Vector3

Parameters

NameType
sVector3

Returns

Vector3

Inherited from

Vector3.scale

Defined in

src/math/Vector3.ts:783


scaleToRef

scaleToRef(s, ref): Vector3

Parameters

NameType
snumber
refVector3

Returns

Vector3

Inherited from

Vector3.scaleToRef

Defined in

src/math/Vector3.ts:790


setTo

setTo(xa, ya, za, wa?): void

Parameters

NameTypeDefault valueDescription
xanumberundefinedThe first element, such as the x coordinate.
yanumberundefinedThe second element, such as the y coordinate.
zanumberundefinedThe third element, such as the z coordinate.
wanumber1-

Returns

void

Language

en_US Sets the members of Vector3 to the specified values

Inherited from

Vector3.setTo

Defined in

src/math/Vector3.ts:809


copy

copy(src): this

Copy the components of the source vector to this vector

Parameters

NameTypeDescription
srcVector3Source vector

Returns

this

Inherited from

Vector3.copy

Defined in

src/math/Vector3.ts:821


subtract

subtract(a, target?): Vector3

Parameters

NameTypeDefault valueDescription
aVector3undefinedThe Vector3 object to be subtracted from the current Vector3 object.
targetVector3null-

Returns

Vector3

A new Vector3 object that is the difference between the current Vector3 and the specified Vector3 object.

Language

en_US Subtracts the value of the x, y, and z elements of the current Vector3 object from the values of the x, y, and z elements of another Vector3 object. The subtract() method does not change the current Vector3 object. Instead, this method returns a new Vector3 object with the new values.

Inherited from

Vector3.subtract

Defined in

src/math/Vector3.ts:842


multiply

multiply(other, target?): Vector3

Let's multiply that vector times that vector.

Parameters

NameTypeDefault valueDescription
otherVector3undefinedMultiplied vectors
targetVector3nullReturned vector

Returns

Vector3

Inherited from

Vector3.multiply

Defined in

src/math/Vector3.ts:856


divided

divided(other, target?): Vector3

Let's divide this vector by this vector.

Parameters

NameTypeDefault valueDescription
otherVector3undefinedThe vector that divides
targetVector3nullReturned vector

Returns

Vector3

Inherited from

Vector3.divided

Defined in

src/math/Vector3.ts:879


div

div(v, target?): Vector3

Divide that vector by the scalar

Parameters

NameTypeDescription
vnumberThe scalar that divides
target?Vector3Output a Vector3 vector

Returns

Vector3

Inherited from

Vector3.div

Defined in

src/math/Vector3.ts:902


lerp

lerp(v0, v1, t): void

Computes the linear interpolation between two Vector3, and the result is the current object

Parameters

NameTypeDescription
v0Vector3Vector 1
v1Vector3Vector 2
tnumberInterpolation factor

Returns

void

Inherited from

Vector3.lerp

Defined in

src/math/Vector3.ts:922


clamp

clamp(min, max): Vector3

The x, y, and z components of this vector are rounded upward to the nearest integers.

Parameters

NameTypeDescription
minVector3minimum value
maxVector3maximum value

Returns

Vector3

Inherited from

Vector3.clamp

Defined in

src/math/Vector3.ts:944


toString

toString(): string

Returns the string form of the current vector

Returns

string

Inherited from

Vector3.toString

Defined in

src/math/Vector3.ts:1010


normalizeToWay2D_XY

normalizeToWay2D_XY(): void

Returns

void

Inherited from

Vector3.normalizeToWay2D_XY

Defined in

src/math/Vector3.ts:1026


toArray

toArray(): number[]

Returns

number[]

Inherited from

Vector3.toArray

Defined in

src/math/Vector3.ts:1044


copyToBytes

copyToBytes(byte): void

Parameters

NameType
byteDataView

Returns

void

Inherited from

Vector3.copyToBytes

Defined in

src/math/Vector3.ts:1048


crossProduct

crossProduct(a, target?): Vector3

You take the cross product of two vectors, The cross product is going to be the perpendicular vector between these two vectors

Parameters

NameTypeDefault valueDescription
aVector3undefinedTake the cross product of another vector
targetVector3null-

Returns

Vector3

Vector3 returns the cross product vector

Inherited from

Vector3.crossProduct

Defined in

src/math/Vector3.ts:1060


crossVectors

crossVectors(a, b): this

Parameters

NameType
aVector3
bVector3

Returns

this

Inherited from

Vector3.crossVectors

Defined in

src/math/Vector3.ts:1069


multiplyScalar

multiplyScalar(scalar): Navi3DTriangle

Parameters

NameType
scalarnumber

Returns

Navi3DTriangle

Inherited from

Vector3.multiplyScalar

Defined in

src/math/Vector3.ts:1074


setFromArray

setFromArray(array, firstElementPos?): void

Parameters

NameTypeDefault value
arraynumber[]undefined
firstElementPosnumber0

Returns

void

Inherited from

Vector3.setFromArray

Defined in

src/math/Vector3.ts:1082


divideScalar

divideScalar(scalar): Navi3DTriangle

Parameters

NameType
scalarany

Returns

Navi3DTriangle

Inherited from

Vector3.divideScalar

Defined in

src/math/Vector3.ts:1088


clampLength

clampLength(min, max): Navi3DTriangle

Parameters

NameType
minnumber
maxnumber

Returns

Navi3DTriangle

Inherited from

Vector3.clampLength

Defined in

src/math/Vector3.ts:1092


setScalar

setScalar(value): Navi3DTriangle

Parameters

NameType
valuenumber

Returns

Navi3DTriangle

Inherited from

Vector3.setScalar

Defined in

src/math/Vector3.ts:1097


addScaledVector

addScaledVector(v, scale): Vector3

Parameters

NameType
vVector3
scalenumber

Returns

Vector3

Inherited from

Vector3.addScaledVector

Defined in

src/math/Vector3.ts:1104


pointInsideTriangle

pointInsideTriangle(pt, pt0, pt1, pt2): boolean

Parameters

NameType
ptVector3
pt0Vector3
pt1Vector3
pt2Vector3

Returns

boolean

Inherited from

Vector3.pointInsideTriangle

Defined in

src/math/Vector3.ts:1133


serialize

serialize(position): Vector3

Parameters

NameType
positionVector3

Returns

Vector3

Inherited from

Vector3.serialize

Defined in

src/math/Vector3.ts:1162


initAABB

initAABB(): void

Returns

void

Implementation of

IQuadNode.initAABB

Defined in

src/math/navigation/Navi3DTriangle.ts:47


calcGlobalQuadAABB

calcGlobalQuadAABB(): void

Returns

void

Implementation of

IQuadNode.calcGlobalQuadAABB

Defined in

src/math/navigation/Navi3DTriangle.ts:55


addNeibour

addNeibour(edge, triangle): void

Parameters

NameType
edgeNavi3DEdge
triangleNavi3DTriangle

Returns

void

Defined in

src/math/navigation/Navi3DTriangle.ts:116


getNeibourTriangles

getNeibourTriangles(list?, edgeMask?, triangleMask?): Navi3DTriangle[]

Parameters

NameTypeDefault value
listNavi3DTriangle[]null
edgeMasknumber1
triangleMasknumber1

Returns

Navi3DTriangle[]

Defined in

src/math/navigation/Navi3DTriangle.ts:125


getEdges

getEdges(list?, edgeMask?): Navi3DEdge[]

Parameters

NameTypeDefault value
listNavi3DEdge[]null
edgeMasknumber1

Returns

Navi3DEdge[]

Defined in

src/math/navigation/Navi3DTriangle.ts:145


testMask

testMask(value): boolean

Parameters

NameType
valuenumber

Returns

boolean

Defined in

src/math/navigation/Navi3DTriangle.ts:165


getEdgeAgainstPoint

getEdgeAgainstPoint(edge): Navi3DPoint

Parameters

NameType
edgeNavi3DEdge

Returns

Navi3DPoint

Defined in

src/math/navigation/Navi3DTriangle.ts:169


getPointAgainstEdge

getPointAgainstEdge(point): Navi3DEdge

Parameters

NameType
pointNavi3DPoint

Returns

Navi3DEdge

Defined in

src/math/navigation/Navi3DTriangle.ts:173


getPublicEdge

getPublicEdge(triangle): Navi3DEdge

Parameters

NameType
triangleNavi3DTriangle

Returns

Navi3DEdge

Defined in

src/math/navigation/Navi3DTriangle.ts:177


loopPublicEdge

loopPublicEdge(triangle): Navi3DEdge

Parameters

NameType
triangleNavi3DTriangle

Returns

Navi3DEdge

Defined in

src/math/navigation/Navi3DTriangle.ts:189


randomPoint

randomPoint(): Vector3

Returns

Vector3

Defined in

src/math/navigation/Navi3DTriangle.ts:203

Released under the MIT License