Line3d Class
Public Class Line3d
Implements IExtents3d
This language is not supported or no code example is available.
public class Line3d : IExtents3d
This language is not supported or no code example is available.
public ref class Line3d : public IExtents3d^
This language is not supported or no code example is available.
| Name | Description | |
|---|---|---|
|
Line3d() | Creates a new zero length line with start and end points at world origo. |
|
Line3d(Line3d) | Copy constructor. Copies the source points. |
|
Line3d(Point3d, Point3d) | Creates a line given two points. |
|
Line3d(double, double, double, double, double, double) | Creates a line given two points x,y,z coordinates. |
| Name | Description | |
|---|---|---|
|
Direction | Direction vector, not normalized. |
|
DirectionNormalized | Normalized direction vector. If line is zero-length this function is undefined. |
|
End | Gets a reference to the end point, or sets the end point to a copy of a given point. |
|
Extents | Line segment extents. |
|
Length | Returns the length of the line segment. |
|
MidPoint | Midpoint of line segment. |
|
Start | Gets a reference to the start point, or sets the start point to a copy of a given point. |
| Name | Description | |
|---|---|---|
|
ClosestParams(Line3d, out double, out double) | Calculates the closest line between two lines parametrically. If the lines are parallel then par1 is set to 0. Can also be used to check if the lines are parallel. |
|
ClosestPoint(Point3d) | Calculates the closest point on line seghment. |
|
ClosestPointInfinite(Point3d) | Calculates the closest point on an infinite line from pt. |
|
Distance(Point3d) | Calculates the distance from pt to the line segment. |
|
DistanceInfinite(Point3d) | Calculates the distance from a point to an infinite line. |
|
Eval(double) | Calculates a point on the infinite line from parameter. |
|
GetZ(double, double) | Calculates z given x and y. Line is considered infinite. |
|
Param(Point3d) | Assuming 'point' is on this line, compute the parameter value defined to 0 at the Start point and 1 and End, similar to Arc2d etc. |
|
Reverse() | Reverses direction of line inline. |
|
Split(IEnumerable<Double>) | Splits a line into multiple lines at split parameters. |
|
Split(double) | |
|
ToString() | Returns a string that represents the current object. |
|
Transform(Matrix3d) | Transforms the line with mat. |
|
WriteAutoCADScript(StreamWriter, int) | Writes line to AudoCAD script. |
IGS.Genamo.Line3d