- Source
Members
length
Calculates the length of the edge.
- Source
type
Determines the type of the edge's curve.
- Source
vertices
Retrieves all vertices of the edge.
- Source
Methods
isParallel(direction) → {boolean|undefined}
Checks if the edge is parallel to a given direction vector. Only applicable for line edges.
Name | Type | Description |
---|---|---|
direction | Vector | The direction vector. |
- Source
true
if the edge is parallel to the direction, false
otherwise, or undefined
if not a line.
- Type:
- boolean |
undefined
isPerpendicular(direction) → {boolean|undefined}
Checks if the edge is perpendicular to a given direction vector. Only applicable for line edges.
Name | Type | Description |
---|---|---|
direction | Vector | The direction vector. |
- Source
true
if the edge is perpendicular to the direction, false
otherwise, or undefined
if not a line.
- Type:
- boolean |
undefined
pointAt(value) → {Vector}
Retrieves the point at a specified normalized distance along the edge.
Name | Type | Description |
---|---|---|
value | number | The normalized distance along the edge (between 0 and 1). |
- Source
A Vector
object representing the point at the given distance.
- Type:
- Vector
pointAtLength(value) → {Vector}
Retrieves the point at a specified distance along the edge.
Name | Type | Description |
---|---|---|
value | number | The distance along the edge (between 0 and edge.length()). |
- Source
A Vector
object representing the point at the given distance.
- Type:
- Vector
tangentAt(value) → {Vector}
Retrieves the tangent vector at a specified normalized distance along the edge.
Name | Type | Description |
---|---|---|
value | number | The normalized distance along the edge (between 0 and 1). |
- Source
A Vector
object representing the tangent vector at the given distance.
- Type:
- Vector