Members
REVISION
Library version
Methods
closestAxisPoint(axisRay, camera, mousePos)
Find the closest point between the axis and the mouse.
Parameters:
Name | Type | Description |
---|---|---|
axisRay |
the ray from the axis |
|
camera |
the camera to project from |
|
mousePos |
the mouse position |
Returns:
the closest axis point
decode64()
Decodes the base64-encoded array 'inbytes' into the array 'outbytes' until 'inbytes' is exhausted or 'outbytes' is filled. if 'record_size' is specified, records of length 'record_size' bytes are copied every other 'pointRatio' records. returns the number of decoded records
- Source:
findClosestPoint(targetRay, mouseRay, the)
Find the closest point on targetRay to any point on mouseRay. Math taken from http://paulbourke.net/geometry/lineline3d/
Parameters:
Name | Type | Description |
---|---|---|
targetRay |
the target ray to use |
|
mouseRay |
the mouse ray |
|
the |
closest point between the two rays |
InStream()
Quick and dirty helper class to read ArrayBuffer in a streamed data-like fashion with mixed types in it
- Source:
intersectPlane(mouseRay, planeOrigin, planeNormal)
Return the intersection between the mouseray and the plane.
Parameters:
Name | Type | Description |
---|---|---|
mouseRay |
the mouse ray |
|
planeOrigin |
the origin of the plane |
|
planeNormal |
the normal of the plane |
Returns:
the intersection point
makeColorMaterial(r, g, b, a)
Create a THREE material based on the given RGBA values.
Parameters:
Name | Type | Description |
---|---|---|
r |
the red value |
|
g |
the green value |
|
b |
the blue value |
|
a |
the alpha value |
Returns:
the THREE material