Class RVertex
接点
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.Graph
Assembly: cs.temp.dll.dll
Syntax
public class RVertex : ARnParts<RVertex>
Constructors
RVertex(Vector3)
Declaration
public RVertex(Vector3 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | v |
Properties
Edges
接続辺
Declaration
public IReadOnlyCollection<REdge> Edges { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<REdge> |
Position
位置
Declaration
public Vector3 Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Methods
AddEdge(REdge)
基本呼び出し禁止. 接続辺追加
Declaration
public void AddEdge(REdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| REdge | edge |
DisConnect(Boolean)
自分自身を外す. removeEdge = trueの時は自分を持っている辺も削除する
Declaration
public void DisConnect(bool removeEdge = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | removeEdge |
DisConnectWithKeepLink()
自分自身を解除するうえで, 今まであったつながりは残すようにする
Declaration
public void DisConnectWithKeepLink()
GetFaces()
Declaration
public IEnumerable<RFace> GetFaces()
Returns
| Type | Description |
|---|---|
| IEnumerable<RFace> |
GetNeighborVertices()
隣接頂点を取得
Declaration
public IEnumerable<RVertex> GetNeighborVertices()
Returns
| Type | Description |
|---|---|
| IEnumerable<RVertex> |
IsNeighbor(RVertex)
otherとの直接の辺を持っているか
Declaration
public bool IsNeighbor(RVertex other)
Parameters
| Type | Name | Description |
|---|---|---|
| RVertex | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
MergeTo(RVertex, Boolean)
自身をdstにマージする
Declaration
public void MergeTo(RVertex dst, bool checkEdgeMerge = true)
Parameters
| Type | Name | Description |
|---|---|---|
| RVertex | dst | |
| System.Boolean | checkEdgeMerge |
RemoveEdge(REdge)
基本呼び出し禁止. 接続辺削除
Declaration
public void RemoveEdge(REdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| REdge | edge |