Click or drag to resize

LineD2D Structure

A straight line in 2D space.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.GeometryLineD2D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public struct LineD2D

The LineD2D type exposes the following members.

Constructors
 NameDescription
Public methodLineD2D Initializes a new instance of the LineD3D struct.
Top
Properties
 NameDescription
Public propertyLength Gets the length of the line.
Public propertyLineVector 
Public propertyLineVectorNormalized 
Public propertyP0 Gets the starting point of the line.
Public propertyP1 Gets the end point of the line.
Public propertyVector Gets the vector from P0 to P1.
Top
Methods
 NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetPointAtLineFromRelativeValue Gets the point at this line from a relative value.
Public methodGetPoints Gets the points of the line as enumeration.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIntersection Calculates the intersection point of two lines.
Public methodReversed Returns a line with opposite direction compared to this line.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodStatic memberTransform Transforms a line with the matrix m.
Public methodWithP0 Returns a new line with P0 set to the provided value.
Public methodWithP1 Returns a new line with P1 set to the provided value.
Public methodWithRotationRadian Creates a new line, which is a rotated version of this line (rotation around a given center point).
Top
Operators
 NameDescription
Public operatorStatic memberAddition(LineD2D, VectorD2D) Translate a line by adding a vector to both start and end point.
Public operatorStatic memberSubtraction(LineD2D, VectorD2D) Translate a line by subtracting a vector from both start and end point.
Top
See Also