Search Results for

    Show / Hide Table of Contents

    Class RnIntersectionEx

    Inheritance
    System.Object
    RnIntersectionEx
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.RoadNetwork.Structure
    Assembly: cs.temp.dll.dll
    Syntax
    public static class RnIntersectionEx

    Methods

    CreateCenterLineGraph(RnIntersection, Single)

    交差点内で各道路への中央ラインを通る経路グラフを作成する

    Declaration
    public static RnIntersectionEx.CenterLineGraph CreateCenterLineGraph(this RnIntersection self, float refineInterval = 3F)
    Parameters
    Type Name Description
    RnIntersection self
    System.Single refineInterval
    Returns
    Type Description
    RnIntersectionEx.CenterLineGraph

    CreateCenterLineGraphOrDefault(RnIntersection, Single)

    Declaration
    public static RnIntersectionEx.CenterLineGraph CreateCenterLineGraphOrDefault(this RnIntersection self, float refineInterval = 3F)
    Parameters
    Type Name Description
    RnIntersection self
    System.Single refineInterval
    Returns
    Type Description
    RnIntersectionEx.CenterLineGraph

    CreateEdgeGroup(RnIntersection)

    交差点のEdgesをRoadごとにグループ化する. RoadA -> null(境界線じゃない部分) -> RoadB -> null -> RoadC -> null -> RoadAのようになる. 順番はEdgesの順番を保持する

    Declaration
    public static List<RnIntersectionEx.EdgeGroup> CreateEdgeGroup(this RnIntersection self)
    Parameters
    Type Name Description
    RnIntersection self
    Returns
    Type Description
    List<RnIntersectionEx.EdgeGroup>

    FindEdges(RnIntersection, RnWay)

    borderWayで指定したRnNeighborを取得する(基本的に0か1)

    Declaration
    public static IEnumerable<RnIntersectionEdge> FindEdges(this RnIntersection self, RnWay borderWay)
    Parameters
    Type Name Description
    RnIntersection self
    RnWay borderWay
    Returns
    Type Description
    IEnumerable<RnIntersectionEdge>

    GetConnectedLanes(RnIntersection, RnWay)

    borderWayで指定した境界線と繋がっているレーンリスト(基本的に0か1)

    Declaration
    public static IEnumerable<RnLane> GetConnectedLanes(this RnIntersection self, RnWay borderWay)
    Parameters
    Type Name Description
    RnIntersection self
    RnWay borderWay
    Returns
    Type Description
    IEnumerable<RnLane>

    GetEdgeCrossPoints(RnIntersection, LineSegment3D)

    selfの全LinestringとlineSegmentの交点を取得する. ただし2D平面に射影したうえでの交点を返す

    Declaration
    public static LineCrossPointResult GetEdgeCrossPoints(this RnIntersection self, LineSegment3D lineSegment)
    Parameters
    Type Name Description
    RnIntersection self
    LineSegment3D lineSegment
    Returns
    Type Description
    LineCrossPointResult

    IsInside2D(RnIntersection, Vector3)

    2D平面に射影したうえでの内部判定

    Declaration
    public static bool IsInside2D(this RnIntersection self, Vector3 pos)
    Parameters
    Type Name Description
    RnIntersection self
    Vector3 pos
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top PLATEAU SDK for Unity