Class Line3

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(start?: Vector3, end?: Vector3): Line3

Parameters

Returns

Line3

Properties

public end: Vector3

public start: Vector3

Methods

public applyMatrix4(matrix: Matrix4): Line3

Parameters

Returns

Line3

public at(t: number, optionalTarget?: Vector3): Vector3

Parameters

  • t: number
  • optionalTarget?: Vector3 optional

Returns

Vector3

public center(optionalTarget?: Vector3): Vector3

Parameters

  • optionalTarget?: Vector3 optional

Returns

Vector3

public clone(): Line3

Returns

Line3

public closestPointToPoint(point: Vector3, clampToLine?: boolean, optionalTarget?: Vector3): Vector3

Parameters

  • point: Vector3
  • clampToLine?: boolean optional
  • optionalTarget?: Vector3 optional

Returns

Vector3

public closestPointToPointParameter(point: Vector3, clampToLine?: boolean): number

Parameters

  • point: Vector3
  • clampToLine?: boolean optional

Returns

number

public copy(line: Line3): Line3

Parameters

Returns

Line3

public delta(optionalTarget?: Vector3): Vector3

Parameters

  • optionalTarget?: Vector3 optional

Returns

Vector3

public distance(): number

Returns

number

public distanceSq(): number

Returns

number

public equals(line: Line3): boolean

Parameters

Returns

boolean

public set(start?: Vector3, end?: Vector3): Line3

Parameters

Returns

Line3