Selva Compute API Reference - v1.1.2
Preparing search index...
visualization
<internal>
Triangle
Class Triangle
Index
Constructors
constructor
Properties
a
b
c
Methods
clone
closest
Point
To
Point
contains
Point
copy
equals
get
Area
get
Barycoord
get
Interpolation
get
Midpoint
get
Normal
get
Plane
intersects
Box
is
Front
Facing
set
set
From
Attribute
And
Indices
set
From
Points
And
Indices
contains
Point
get
Barycoord
get
Interpolated
Attribute
get
Interpolation
get
Normal
is
Front
Facing
Constructors
constructor
new
Triangle
(
a
?:
Vector3
,
b
?:
Vector3
,
c
?:
Vector3
)
:
Triangle
Parameters
Optional
a
:
Vector3
Optional
b
:
Vector3
Optional
c
:
Vector3
Returns
Triangle
Properties
a
a
:
Vector3
Default
new
THREE
.
Vector3
()
Copy
b
b
:
Vector3
Default
new
THREE
.
Vector3
()
Copy
c
c
:
Vector3
Default
new
THREE
.
Vector3
()
Copy
Methods
clone
clone
()
:
this
Returns
this
closest
Point
To
Point
closestPointToPoint
(
point
:
Vector3
,
target
:
Vector3
)
:
Vector3
Parameters
point
:
Vector3
target
:
Vector3
Returns
Vector3
contains
Point
containsPoint
(
point
:
Vector3
)
:
boolean
Parameters
point
:
Vector3
Returns
boolean
copy
copy
(
triangle
:
Triangle
)
:
this
Parameters
triangle
:
Triangle
Returns
this
equals
equals
(
triangle
:
Triangle
)
:
boolean
Parameters
triangle
:
Triangle
Returns
boolean
get
Area
getArea
()
:
number
Returns
number
get
Barycoord
getBarycoord
(
point
:
Vector3
,
target
:
Vector3
)
:
Vector3
|
null
Parameters
point
:
Vector3
target
:
Vector3
Returns
Vector3
|
null
get
Interpolation
getInterpolation
(
point
:
Vector3
,
v1
:
Vector2
,
v2
:
Vector2
,
v3
:
Vector2
,
target
:
Vector2
,
)
:
Vector2
|
null
Parameters
point
:
Vector3
v1
:
Vector2
v2
:
Vector2
v3
:
Vector2
target
:
Vector2
Returns
Vector2
|
null
getInterpolation
(
point
:
Vector3
,
v1
:
Vector3
,
v2
:
Vector3
,
v3
:
Vector3
,
target
:
Vector3
,
)
:
Vector3
|
null
Parameters
point
:
Vector3
v1
:
Vector3
v2
:
Vector3
v3
:
Vector3
target
:
Vector3
Returns
Vector3
|
null
getInterpolation
(
point
:
Vector3
,
v1
:
Vector4
,
v2
:
Vector4
,
v3
:
Vector4
,
target
:
Vector4
,
)
:
Vector4
|
null
Parameters
point
:
Vector3
v1
:
Vector4
v2
:
Vector4
v3
:
Vector4
target
:
Vector4
Returns
Vector4
|
null
get
Midpoint
getMidpoint
(
target
:
Vector3
)
:
Vector3
Parameters
target
:
Vector3
Returns
Vector3
get
Normal
getNormal
(
target
:
Vector3
)
:
Vector3
Parameters
target
:
Vector3
Returns
Vector3
get
Plane
getPlane
(
target
:
Plane
)
:
Plane
Parameters
target
:
Plane
Returns
Plane
intersects
Box
intersectsBox
(
box
:
Box3
)
:
boolean
Parameters
box
:
Box3
Returns
boolean
is
Front
Facing
isFrontFacing
(
direction
:
Vector3
)
:
boolean
Parameters
direction
:
Vector3
Returns
boolean
set
set
(
a
:
Vector3
,
b
:
Vector3
,
c
:
Vector3
)
:
Triangle
Parameters
a
:
Vector3
b
:
Vector3
c
:
Vector3
Returns
Triangle
set
From
Attribute
And
Indices
setFromAttributeAndIndices
(
attribute
:
BufferAttribute
|
InterleavedBufferAttribute
,
i0
:
number
,
i1
:
number
,
i2
:
number
,
)
:
this
Parameters
attribute
:
BufferAttribute
|
InterleavedBufferAttribute
i0
:
number
i1
:
number
i2
:
number
Returns
this
set
From
Points
And
Indices
setFromPointsAndIndices
(
points
:
Vector3
[]
,
i0
:
number
,
i1
:
number
,
i2
:
number
,
)
:
this
Parameters
points
:
Vector3
[]
i0
:
number
i1
:
number
i2
:
number
Returns
this
Static
contains
Point
containsPoint
(
point
:
Vector3
,
a
:
Vector3
,
b
:
Vector3
,
c
:
Vector3
)
:
boolean
Parameters
point
:
Vector3
a
:
Vector3
b
:
Vector3
c
:
Vector3
Returns
boolean
Static
get
Barycoord
getBarycoord
(
point
:
Vector3
,
a
:
Vector3
,
b
:
Vector3
,
c
:
Vector3
,
target
:
Vector3
,
)
:
Vector3
|
null
Parameters
point
:
Vector3
a
:
Vector3
b
:
Vector3
c
:
Vector3
target
:
Vector3
Returns
Vector3
|
null
Static
get
Interpolated
Attribute
getInterpolatedAttribute
(
attr
:
BufferAttribute
|
InterleavedBufferAttribute
,
i1
:
number
,
i2
:
number
,
i3
:
number
,
barycoord
:
Vector3
,
target
:
Vector2
,
)
:
Vector2
Parameters
attr
:
BufferAttribute
|
InterleavedBufferAttribute
i1
:
number
i2
:
number
i3
:
number
barycoord
:
Vector3
target
:
Vector2
Returns
Vector2
getInterpolatedAttribute
(
attr
:
BufferAttribute
|
InterleavedBufferAttribute
,
i1
:
number
,
i2
:
number
,
i3
:
number
,
barycoord
:
Vector3
,
target
:
Vector3
,
)
:
Vector3
Parameters
attr
:
BufferAttribute
|
InterleavedBufferAttribute
i1
:
number
i2
:
number
i3
:
number
barycoord
:
Vector3
target
:
Vector3
Returns
Vector3
getInterpolatedAttribute
(
attr
:
BufferAttribute
|
InterleavedBufferAttribute
,
i1
:
number
,
i2
:
number
,
i3
:
number
,
barycoord
:
Vector3
,
target
:
Vector4
,
)
:
Vector4
Parameters
attr
:
BufferAttribute
|
InterleavedBufferAttribute
i1
:
number
i2
:
number
i3
:
number
barycoord
:
Vector3
target
:
Vector4
Returns
Vector4
Static
get
Interpolation
getInterpolation
(
point
:
Vector3
,
p1
:
Vector3
,
p2
:
Vector3
,
p3
:
Vector3
,
v1
:
Vector2
,
v2
:
Vector2
,
v3
:
Vector2
,
target
:
Vector2
,
)
:
Vector2
|
null
Parameters
point
:
Vector3
p1
:
Vector3
p2
:
Vector3
p3
:
Vector3
v1
:
Vector2
v2
:
Vector2
v3
:
Vector2
target
:
Vector2
Returns
Vector2
|
null
getInterpolation
(
point
:
Vector3
,
p1
:
Vector3
,
p2
:
Vector3
,
p3
:
Vector3
,
v1
:
Vector3
,
v2
:
Vector3
,
v3
:
Vector3
,
target
:
Vector3
,
)
:
Vector3
|
null
Parameters
point
:
Vector3
p1
:
Vector3
p2
:
Vector3
p3
:
Vector3
v1
:
Vector3
v2
:
Vector3
v3
:
Vector3
target
:
Vector3
Returns
Vector3
|
null
getInterpolation
(
point
:
Vector3
,
p1
:
Vector3
,
p2
:
Vector3
,
p3
:
Vector3
,
v1
:
Vector4
,
v2
:
Vector4
,
v3
:
Vector4
,
target
:
Vector4
,
)
:
Vector4
|
null
Parameters
point
:
Vector3
p1
:
Vector3
p2
:
Vector3
p3
:
Vector3
v1
:
Vector4
v2
:
Vector4
v3
:
Vector4
target
:
Vector4
Returns
Vector4
|
null
Static
get
Normal
getNormal
(
a
:
Vector3
,
b
:
Vector3
,
c
:
Vector3
,
target
:
Vector3
)
:
Vector3
Parameters
a
:
Vector3
b
:
Vector3
c
:
Vector3
target
:
Vector3
Returns
Vector3
Static
is
Front
Facing
isFrontFacing
(
a
:
Vector3
,
b
:
Vector3
,
c
:
Vector3
,
direction
:
Vector3
)
:
boolean
Parameters
a
:
Vector3
b
:
Vector3
c
:
Vector3
direction
:
Vector3
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
a
b
c
Methods
clone
closest
Point
To
Point
contains
Point
copy
equals
get
Area
get
Barycoord
get
Interpolation
get
Midpoint
get
Normal
get
Plane
intersects
Box
is
Front
Facing
set
set
From
Attribute
And
Indices
set
From
Points
And
Indices
contains
Point
get
Barycoord
get
Interpolated
Attribute
get
Interpolation
get
Normal
is
Front
Facing
Selva Compute API Reference - v1.1.2
Loading...
Default