• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Paramdigma.Core
    • Convert
    • Intersect3D
    • Intersect3D.LineLineIntersectionResult
    • Intersect3D.LineLineIntersectionStatus
    • Intersect3D.LinePlaneIntersectionStatus
    • Intersect3D.RayFacePerimeterIntersectionStatus
    • Settings
  • Paramdigma.Core.Collections
    • Interval
    • Matrix<T>
  • Paramdigma.Core.Curves
    • Geodesics
    • LevelSets
  • Paramdigma.Core.Exceptions
    • UnsetGeometryException
  • Paramdigma.Core.Extensions
    • Lists
  • Paramdigma.Core.Geometry
    • BaseCurve
    • BasePoint
    • Box
    • Circle
    • Cylinder
    • Delaunay
    • InvalidCurveException
    • Line
    • Line2d
    • Mesh
    • MeshCorner
    • MeshEdge
    • MeshFace
    • MeshGeometry
    • MeshHalfEdge
    • MeshPoint
    • MeshTopology
    • MeshVertex
    • NurbsCurve
    • NurbsSurface
    • Plane
    • Point2d
    • Point3d
    • Point4d
    • Polyline
    • Polyline2d
    • Ray
    • Ray2d
    • Rectangle2d
    • Sphere
    • Torus
    • Vector2d
    • Vector3d
    • VectorNd
  • Paramdigma.Core.Geometry.Interfaces
    • ICurve
    • ISurface
    • IVector
  • Paramdigma.Core.IO
    • CsvReader
    • CsvWritter
    • OBJMeshData
    • ObjReader
    • ObjWritter
    • OffMeshData
    • OffReader
    • OffResult
    • OffWriter
  • Paramdigma.Core.LinearAlgebra
    • Complex
    • LeastSquaresLinearFit
    • Triplet
    • TripletData
  • Paramdigma.Core.Optimization
    • GradientDescent
    • GradientDescent.FitnessFunction
    • GradientDescentOptions
    • GradientDescentResult
    • KMeansCluster
    • KMeansClustering
    • KMeansClustering.IterationCompletedEventArgs
  • Paramdigma.Core.Spatial
    • DelaunayEdge
    • DelaunayPoint
    • DelaunayTriangle
    • Octree
    • PointCloud
    • PointCloudMember
    • QuadTree

Class Line2d

Represents a 2-dimensional line.

Inheritance
System.Object
Line2d
DelaunayEdge
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Line2d : object

Constructors

| Improve this Doc View Source

Line2d(Point2d, Point2d)

Initializes a new instance of the Line2d class.

Declaration
public Line2d(Point2d startPoint, Point2d endPoint)
Parameters
Type Name Description
Point2d startPoint

Start point of the line.

Point2d endPoint

End point of the line.

| Improve this Doc View Source

Line2d(Point2d, Vector2d)

Initializes a new instance of the Line2d class.

Declaration
public Line2d(Point2d startPoint, Vector2d direction)
Parameters
Type Name Description
Point2d startPoint

The start point of the line.

Vector2d direction

Direction. The length of the vector will determine the end point.

| Improve this Doc View Source

Line2d(Point2d, Vector2d, Double)

Initializes a new instance of the Line2d class.

Declaration
public Line2d(Point2d startPoint, Vector2d direction, double length)
Parameters
Type Name Description
Point2d startPoint

Start point.

Vector2d direction

Direction (length of vector will be disregarded).

System.Double length

Desired length of the line.

Properties

| Improve this Doc View Source

Domain

Gets or sets the line's domain.

Declaration
public Interval Domain { get; set; }
Property Value
Type Description
Interval

Interval.

| Improve this Doc View Source

EndPoint

Gets or sets the end point of the line.

Declaration
public Point2d EndPoint { get; set; }
Property Value
Type Description
Point2d

3D Point.

| Improve this Doc View Source

Length

Gets the length of the line.

Declaration
public double Length { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

StartPoint

Gets or sets the start point of the line.

Declaration
public Point2d StartPoint { get; set; }
Property Value
Type Description
Point2d

3D Point.

| Improve this Doc View Source

Vector

Gets the vector representation of the line.

Declaration
public Vector2d Vector { get; }
Property Value
Type Description
Vector2d

Methods

| Improve this Doc View Source

IsLeft(Point2d)

Computes if a given point is at the left, right or on the current line.

Declaration
public double IsLeft(Point2d point)
Parameters
Type Name Description
Point2d point

Point to test.

Returns
Type Description
System.Double

0 for point left of the line =0 for point on the line bigger 0 for point right of the line.

Operators

| Improve this Doc View Source

Implicit(Line2d to Vector2d)

Implicit conversion from line to vector.

Declaration
public static implicit operator Vector2d(Line2d line)
Parameters
Type Name Description
Line2d line

Line to be transformed into vector.

Returns
Type Description
Vector2d
  • Improve this Doc
  • View Source
Back to top Generated by DocFX