Search Results for

    Show / Hide Table of Contents

    Struct Segment2f

    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 Segment2f

    Constructors

    Segment2f(Vector2f, Vector2f)

    Declaration
    public Segment2f(Vector2f p0, Vector2f p1)
    Parameters
    Type Name Description
    Vector2f p0
    Vector2f p1

    Segment2f(Vector2f, Vector2f, Single)

    Declaration
    public Segment2f(Vector2f center, Vector2f direction, float extent)
    Parameters
    Type Name Description
    Vector2f center
    Vector2f direction
    Single extent

    Fields

    Center

    Declaration
    public Vector2f Center
    Field Value
    Type Description
    Vector2f

    Direction

    Declaration
    public Vector2f Direction
    Field Value
    Type Description
    Vector2f

    Extent

    Declaration
    public float Extent
    Field Value
    Type Description
    Single

    Properties

    Length

    Declaration
    public float Length { get; }
    Property Value
    Type Description
    Single

    P0

    Declaration
    public Vector2f P0 { get; set; }
    Property Value
    Type Description
    Vector2f

    P1

    Declaration
    public Vector2f P1 { get; set; }
    Property Value
    Type Description
    Vector2f

    Methods

    DistanceSquared(Vector2f)

    Declaration
    public float DistanceSquared(Vector2f p)
    Parameters
    Type Name Description
    Vector2f p
    Returns
    Type Description
    Single

    FastDistanceSquared(ref Vector2f, ref Vector2f, ref Vector2f)

    distance from pt to segment (a,b), with no square roots

    Declaration
    public static float FastDistanceSquared(ref Vector2f a, ref Vector2f b, ref Vector2f pt)
    Parameters
    Type Name Description
    Vector2f a
    Vector2f b
    Vector2f pt
    Returns
    Type Description
    Single

    NearestPoint(Vector2f)

    Declaration
    public Vector2f NearestPoint(Vector2f p)
    Parameters
    Type Name Description
    Vector2f p
    Returns
    Type Description
    Vector2f

    PointAt(Single)

    Declaration
    public Vector2f PointAt(float d)
    Parameters
    Type Name Description
    Single d
    Returns
    Type Description
    Vector2f

    PointBetween(Single)

    Declaration
    public Vector2f PointBetween(float t)
    Parameters
    Type Name Description
    Single t
    Returns
    Type Description
    Vector2f

    Project(Vector2f)

    Declaration
    public float Project(Vector2f p)
    Parameters
    Type Name Description
    Vector2f p
    Returns
    Type Description
    Single
    In This Article
    Back to top ViRGIS VR GIS