Threepp.Line3¶
3D line segment class
Members¶
Constructors¶
Properties¶
Methods¶
- set
- clone
- copy
- getCenter
- delta
- distanceSq
- distance
- at
- closestPointToPoint
- closestPointToPointParameter
- applyMatrix4
- equals
Line3¶
Constructor
Arguments
| Arguments | Default | Description |
|---|---|---|
start |
|
Start point (Vector3). |
end |
|
End point (Vector3). |
Description
Constructor
start¶
Property \ Access: r/w
Description
Start point (read-only)
end¶
Property \ Access: r/w
Description
End point (read-only)
set¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
start |
|
|
end |
|
Description
Sets the values
clone¶
Method
Description
Clones the line
copy¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
line |
|
Description
Copies another line
getCenter¶
Method
Description
Gets the center
delta¶
Method
Description
Gets the direction vector
distanceSq¶
Method
Description
Squared length
distance¶
Method
Description
Length
at¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
t |
|
Description
Gets the point at a parameter position
closestPointToPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
|
clamp |
|
Description
Gets the closest point
closestPointToPointParameter¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
|
clamp |
|
Description
Parameter of the closest point
applyMatrix4¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
m |
|
Description
Applies a matrix
equals¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
line |
|
Description
Equality test