API Docs for: 1.0.2
Show:

GIScene.Line2 Class

Defined in: GIScene\Line2.js:1
Module: GIScene

Represents a mathematical 2D Line

Constructor

GIScene.Line2

(
  • positionVector2
  • directionVector2
)

Defined in GIScene\Line2.js:1

Parameters:

  • positionVector2 THREE.Vector2
  • directionVector2 THREE.Vector2

Item Index

Methods

fromPoints

(
  • pointA2
  • pointB2
)
GIScene.Line2

Defined in GIScene\Line2.js:27

Creates a Line2 by specifying two points somewhere on that line

Parameters:

  • pointA2 THREE.Vector2
  • pointB2 THREE.Vector2

Returns:

intersect

(
  • line2
)
THREE.Vector2

Defined in GIScene\Line2.js:42

Computes the intersection point between this line and a second one

Parameters:

  • line2 Object

Returns:

THREE.Vector2:

instersectionPoint