Search Results for

    Show / Hide Table of Contents

    Struct Line2d

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public struct Line2d

    Constructors

    Line2d(Vector2d, Vector2d)

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

    Line2d(ref Vector2d, ref Vector2d)

    Declaration
    public Line2d(ref Vector2d origin, ref Vector2d direction)
    Parameters
    Type Name Description
    Vector2d origin
    Vector2d direction

    Fields

    Direction

    Declaration
    public Vector2d Direction
    Field Value
    Type Description
    Vector2d

    Origin

    Declaration
    public Vector2d Origin
    Field Value
    Type Description
    Vector2d

    Methods

    DistanceSquared(Vector2d)

    Declaration
    public double DistanceSquared(Vector2d p)
    Parameters
    Type Name Description
    Vector2d p
    Returns
    Type Description
    Double

    FromPoints(Vector2d, Vector2d)

    Declaration
    public static Line2d FromPoints(Vector2d p0, Vector2d p1)
    Parameters
    Type Name Description
    Vector2d p0
    Vector2d p1
    Returns
    Type Description
    Line2d

    FromPoints(ref Vector2d, ref Vector2d)

    Declaration
    public static Line2d FromPoints(ref Vector2d p0, ref Vector2d p1)
    Parameters
    Type Name Description
    Vector2d p0
    Vector2d p1
    Returns
    Type Description
    Line2d

    IntersectionPoint(ref Line2d, Double)

    Calculate intersection point between this line and another one. Returns Vector2d.MaxValue if lines are parallel.

    Declaration
    public Vector2d IntersectionPoint(ref Line2d other, double dotThresh = 1E-08)
    Parameters
    Type Name Description
    Line2d other
    Double dotThresh
    Returns
    Type Description
    Vector2d

    PointAt(Double)

    Declaration
    public Vector2d PointAt(double d)
    Parameters
    Type Name Description
    Double d
    Returns
    Type Description
    Vector2d

    Project(Vector2d)

    Declaration
    public double Project(Vector2d p)
    Parameters
    Type Name Description
    Vector2d p
    Returns
    Type Description
    Double

    WhichSide(Vector2d, Double)

    Returns: +1, on right of line -1, on left of line 0, on the line

    Declaration
    public int WhichSide(Vector2d test, double tol = 0)
    Parameters
    Type Name Description
    Vector2d test
    Double tol
    Returns
    Type Description
    Int32

    WhichSide(ref Vector2d, Double)

    Declaration
    public int WhichSide(ref Vector2d test, double tol = 0)
    Parameters
    Type Name Description
    Vector2d test
    Double tol
    Returns
    Type Description
    Int32

    Operators

    Explicit(Line2d to Line2f)

    Declaration
    public static explicit operator Line2f(Line2d v)
    Parameters
    Type Name Description
    Line2d v
    Returns
    Type Description
    Line2f

    Implicit(Line2f to Line2d)

    Declaration
    public static implicit operator Line2d(Line2f v)
    Parameters
    Type Name Description
    Line2f v
    Returns
    Type Description
    Line2d
    In This Article
    Back to top ViRGIS VR GIS