Class: DefParallelLine

algeobra~DefParallelLine(params, distance)

Definition of a parallel line being a certain distance away from another

Constructor

new DefParallelLine(params, distance)

Default values
Parameters:
Name Type Description
params Object
distance Number The distance the parallel line should be displaced by
Source:

Methods

compute(createInfo) → {Object}

Computes the parallel line
Parameters:
Name Type Description
createInfo CreateInfo The creation info
Source:
Returns:
Parallel line of TYPE_LINE
Type
Object

(static) fromVectorsOrLine(params) → {CreateInfo}

Creates a new parallel line from a vector or a line.
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
v Number | Object Either the index or value of a TYPE_POINT | TYPE_LINE. The vector or line
distance Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The distance to the input line or vector
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromVectorsOrLineRef(params) → {CreateInfo}

Creates a new parallel line from a vector or a line. The line will use the first point of a line or the vector reference as a point through which it goes
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
v Number | Object Either the index or value of a TYPE_POINT | TYPE_LINE. The vector or line
ref Number | Object <optional>
Either the index or value of a TYPE_POINT. The reference point
Source:
Returns:
The creation info
Type
CreateInfo