[page:Object3D] →

# [name]

A continuous line.

## Example

`var material = new THREE.LineBasicMaterial({ color: 0x0000ff }); var geometry = new THREE.Geometry(); geometry.vertices.push( new THREE.Vector3( -10, 0, 0 ), new THREE.Vector3( 0, 10, 0 ), new THREE.Vector3( 10, 0, 0 ) ); var line = new THREE.Line( geometry, material ); scene.add( line );`

## Constructor

### [name]( [page:Geometry geometry], [page:Material material] )

geometry — Vertices representing the line segment(s).
material — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].
If no material is supplied, a randomized line material will be created and assigned to the object.

## Properties

### [property:Geometry geometry]

Vertices representing the line segment(s).

### [property:Material material]

Material for the line.

## Methods

### [method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )

Get intersections between a casted ray and this Line. [page:Raycaster.intersectObject] will call this method.

### [method:Line clone]()

Returns a clone of this Line object and its descendants.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]