Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Line3

A geometric line segment represented by a start and end point. See the ngx3js docs page for details.

Hierarchy

  • Line3

Index

Constructors

constructor

Properties

end

Vector3 representing the end point of the line.

start

start: I3JS.Vector3

Vector3 representing the start point of the line.

Methods

applyMatrix4

at

  • Parameters

    • t: number

      Use values 0-1 to return a position along the line segment.

    • target: I3JS.Vector3

      The result will be copied into this Vector3.

    Returns I3JS.Vector3

    Returns a vector at a certain position along the line. When t = 0, it returns the start vector, and when t = 1 it returns the end vector.

clone

closestPointToPoint

closestPointToPointParameter

  • closestPointToPointParameter(point: I3JS.Vector3, clampToLine?: boolean): number
  • If clampToLine is true, then the returned value will be between 0 and 1.

    Parameters

    • point: I3JS.Vector3

      The point for which to return a point parameter.

    • Optional clampToLine: boolean

      Whether to clamp the result to the range [0, 1].

    Returns number

    Returns a point parameter based on the closest point as projected on the line segement.

copy

delta

distance

  • distance(): number

distanceSq

  • distanceSq(): number

equals

getCenter

set

Generated using TypeDoc