Line3

THREE.Line3
class Line3(var start: UndefOr[Vector3], var end: UndefOr[Vector3]) extends Object

A class representing a line in 3D space, defined by a start point and an end point.

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def applyMatrix4(matrix: Matrix4): this.type

Applies the given matrix to this line's start and end points.

Applies the given matrix to this line's start and end points.

Attributes

def at(t: Double, target: Vector3): Vector3

Returns a point at a certain distance along the line from the start point.

Returns a point at a certain distance along the line from the start point.

Attributes

def closestPointToPoint(point: Vector3, clampToLine: Boolean, target: Vector3): Vector3

Calculates the closest point on this line to the given point.

Calculates the closest point on this line to the given point.

Attributes

def closestPointToPointParameter(point: Vector3, clampToLine: Boolean): Double

Calculates the closest point on this line to the given line.

Calculates the closest point on this line to the given line.

Attributes

def copy(line: Line3): this.type

Copies the start and end points from the given line.

Copies the start and end points from the given line.

Attributes

def delta(target: Vector3): Vector3

Gets the delta vector of this line (end point - start point).

Gets the delta vector of this line (end point - start point).

Attributes

def distance(): Double

Calculates the distance from this line to the given point.

Calculates the distance from this line to the given point.

Attributes

def distanceSq(): Double

Calculates the squared distance from this line to the given point.

Calculates the squared distance from this line to the given point.

Attributes

def equals(line: Line3): Boolean

Returns true if this line equals the given line.

Returns true if this line equals the given line.

Attributes

def getCenter(target: Vector3): Vector3

Returns the center of the line segment.

Returns the center of the line segment.

Attributes

def jsClone(): Line3

Creates a new Line3 with the same start and end points as this one.

Creates a new Line3 with the same start and end points as this one.

Attributes

def set(start: Vector3, end: Vector3): this.type

Sets the start and end points of this line.

Sets the start and end points of this line.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

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

Attributes

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

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var end: UndefOr[Vector3]
var start: UndefOr[Vector3]