ArrowHelper

THREE.ArrowHelper
See theArrowHelper companion object
class ArrowHelper(var dir: Vector3, var origin: Vector3, var length: Double, var color: Double | Color | String, var headLength: Double, var headWidth: Double) extends Object3D

An 3D arrow object for visualizing directions.

Attributes

Example
 val dir = new Vector3(1, 2, 0)
 dir.normalize()
 val origin = new Vector3(0, 0, 0)
 val length = 1.0
 val hex    = 0xffff00
 val arrowHelper = new ArrowHelper(dir, origin, length, hex)
 scene.add(arrowHelper)
Companion
object
Graph
Supertypes
class Object3D
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def dispose(): Unit

Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

Attributes

def setColor(color: Double | Color | String): Unit

Sets the color of the helper.

Sets the color of the helper.

Value parameters

color

The color to set.

Attributes

def setDirection(dir: Vector3): Unit

Sets the direction of the helper.

Sets the direction of the helper.

Value parameters

dir

The normalized direction vector.

Attributes

def setLength(length: Double, headLength: Double, headWidth: Double): Unit

Sets the length of the helper.

Sets the length of the helper.

Value parameters

headLength

The length of the head of the arrow. Default is length*0.2.

headWidth

The width of the head of the arrow. Default is headLength*0.2.

length

Length of the arrow in world units.

Attributes

Inherited methods

def add(obj: Object3D*): this.type

Attributes

Inherited from:
Object3D
def applyMatrix4(matrix: Matrix4): Unit

Attributes

Inherited from:
Object3D
def applyQuaternion(q: Quaternion): this.type

Attributes

Inherited from:
Object3D
def attach(obj: Object3D): this.type

Attributes

Inherited from:
Object3D
def clear(): this.type

Attributes

Inherited from:
Object3D
def copy(source: Object3D, recursive: Boolean): this.type

Attributes

Inherited from:
Object3D
def getObjectById(id: Int): UndefOr[Object3D]

Attributes

Inherited from:
Object3D
def getObjectByName(name: String): UndefOr[Object3D]

Attributes

Inherited from:
Object3D
def getObjectByProperty(name: String, value: Any): UndefOr[Object3D]

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D
def getWorldScale(target: Vector3): Vector3

Attributes

Inherited from:
Object3D
def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def jsClone(recursive: Boolean): this.type

Attributes

Inherited from:
Object3D
def localToWorld(vector: Vector3): Vector3

Attributes

Inherited from:
Object3D
def lookAt(x: Any, y: UndefOr[Double], z: UndefOr[Double]): Unit

Attributes

Inherited from:
Object3D
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def raycast(raycaster: Object, intersects: Array[Object]): Unit

Attributes

Inherited from:
Object3D
def remove(ob: Object3D*): this.type

Attributes

Inherited from:
Object3D
def rotateOnAxis(axis: Vector3, angle: Double): this.type

Attributes

Inherited from:
Object3D
def rotateOnWorldAxis(axis: Vector3, angle: Double): this.type

Attributes

Inherited from:
Object3D
def rotateX(angle: Double): this.type

Attributes

Inherited from:
Object3D
def rotateY(angle: Double): this.type

Attributes

Inherited from:
Object3D
def rotateZ(angle: Double): this.type

Attributes

Inherited from:
Object3D
def setRotationFromAxisAngle(axis: Vector3, angle: Double): Unit

Attributes

Inherited from:
Object3D
def setRotationFromEuler(euler: Euler): Unit

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D
def toLocaleString(): String

Attributes

Inherited from:
Object
def translateOnAxis(axis: Vector3, distance: Double): this.type

Attributes

Inherited from:
Object3D
def translateX(distance: Double): this.type

Attributes

Inherited from:
Object3D
def translateY(distance: Double): this.type

Attributes

Inherited from:
Object3D
def translateZ(distance: Double): this.type

Attributes

Inherited from:
Object3D
def traverse(callback: Function1[Object3D, Unit]): Unit

Attributes

Inherited from:
Object3D
def traverseAncestors(callback: Function1[Object3D, Unit]): Unit

Attributes

Inherited from:
Object3D
def traverseVisible(callback: Function1[Object3D, Unit]): Unit

Attributes

Inherited from:
Object3D
def updateMatrix(): Unit

Attributes

Inherited from:
Object3D
def updateMatrixWorld(force: Boolean): Unit

Attributes

Inherited from:
Object3D
def updateWorldMatrix(updateParent: Boolean, updateChildren: Boolean): Unit

Attributes

Inherited from:
Object3D
def valueOf(): Any

Attributes

Inherited from:
Object
def worldToLocal(vector: Vector3): Vector3

Attributes

Inherited from:
Object3D

Concrete fields

override val `type`: String

The type property of the helper.

The type property of the helper.

Attributes

var color: Double | Color | String
val cone: Mesh

The cone part of the arrow helper.

The cone part of the arrow helper.

Attributes

var dir: Vector3
var headLength: Double
var headWidth: Double
val isArrowHelper: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

var length: Double
val line: Line

The line part of the arrow helper.

The line part of the arrow helper.

Attributes

Inherited fields

var castShadow: Boolean

Attributes

Inherited from:
Object3D
val children: Array[Object3D]

Attributes

Inherited from:
Object3D
var frustumCulled: Boolean

Attributes

Inherited from:
Object3D
val id: Int

Attributes

Inherited from:
Object3D
var layers: Object

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D
var matrixAutoUpdate: Boolean

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D
var matrixWorldNeedsUpdate: Boolean

Attributes

Inherited from:
Object3D
var name: String

Attributes

Inherited from:
Object3D
var parent: UndefOr[Object3D]

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D
var receiveShadow: Boolean

Attributes

Inherited from:
Object3D
var renderOrder: Double

Attributes

Inherited from:
Object3D

Attributes

Inherited from:
Object3D
var scale: Vector3

Attributes

Inherited from:
Object3D
var userData: Object

Attributes

Inherited from:
Object3D
val uuid: String

Attributes

Inherited from:
Object3D
var visible: Boolean

Attributes

Inherited from:
Object3D