Namespace: getCenter

SpriteText.SpriteText.getCenter(center, positionopt)

Returns center
Parameters:
Name Type Attributes Description
center THREE.Vector2 | object If center.x and center.y is defined, then it the text's anchor point.
Otherwise, the center is calculated so that the text is always inside the canvas.
Please define center.camera and center.canvas for it. See below for details.
Properties
Name Type Attributes Description
camera THREE.PerspectiveCamera <optional>
PerspectiveCamera
canvas HTMLElement <optional>
canvas element.
position THREE.Vector3 <optional>
Position of the text. Uses only if center.camera and center.canvas is defined
Source:
Returns:
center. If center is not defined, returns the left upper corner: new THREE.Vector2( 0, 1 );

Methods

(inner) worldToScreen()

Converting World coordinates to Screen coordinates https://stackoverflow.com/questions/11586527/converting-world-coordinates-to-screen-coordinates-in-three-js-using-projection
Source: