C# 클래스 EdgeGraph.EdgeGraphUtility

파일 보기 프로젝트 열기: famerij/EdgeGraph 1 사용 예제들

공개 메소드들

메소드 설명
CheckAdjacentNodes ( List &_nodes, List &_edges ) : void
CleanUpEdges ( List &nodes, List &edges ) : void
CopyNodesAndEdges ( List _nodes, List _edges, List &_newNodes, List &_newEdges, bool adjacentCheck = true, bool cleanUp = true ) : void

Makes copies of edges and nodes New edges will have new IDs and new copies of nodes

FindEdgeByNodes ( Node n1, Node n2, List _edges ) : Edge
FindEdgeByNodes ( string n1, string n2, List _edges ) : Edge
FixIntersectingEdges ( List &nodes, List &edges ) : bool
GetClosestEdge ( Vector3 point, List nodes, List edges, Transform refTransform ) : Edge

Returns closest edge to the world point. Edge positions are changed to world coordinates in reference to refTransform.

GetClosestNode ( Vector3 point, List nodes, Transform refTransform ) : Node

Returns closest node to the world point. Node positions are changed to world coordinates in reference to refTransform.

GetClosestPointOnEdge ( Vector3 point, List nodes, List edges, Transform refTransform, Edge &closestEdge ) : Vector3

Returns closest point on all the given edges. Edge positions are changed to world coordinates in reference to refTransform.

GetEdge ( string id, List &_edges ) : Edge
GetEdgePosition ( string id, List &_nodes, List &_edges, Transform transform = null ) : Vector3
GetNode ( int index, List &_nodes ) : Node
GetNode ( string id, List &_nodes ) : Node
GetPointOnClosestEdge ( Vector3 point, List nodes, List edges, Transform refTransform ) : Vector3

Returns closest point on the closest point with given point

PointIsInside ( Vector3 point, List nodes, List edges ) : bool

Checks if given point is inside the edges. The point must be in the same space than node positions

RemoveEdgeAndCleanAdjacents ( Node _n0, Node _n1, List &_nodes, List &_edges ) : Edge
RemoveNodeAndCleanAdjacents ( Node n, List &_nodes, List &_edges ) : void

메소드 상세

CheckAdjacentNodes() 공개 정적인 메소드

public static CheckAdjacentNodes ( List &_nodes, List &_edges ) : void
_nodes List
_edges List
리턴 void

CleanUpEdges() 공개 정적인 메소드

public static CleanUpEdges ( List &nodes, List &edges ) : void
nodes List
edges List
리턴 void

CopyNodesAndEdges() 공개 정적인 메소드

Makes copies of edges and nodes New edges will have new IDs and new copies of nodes
public static CopyNodesAndEdges ( List _nodes, List _edges, List &_newNodes, List &_newEdges, bool adjacentCheck = true, bool cleanUp = true ) : void
_nodes List
_edges List
_newNodes List
_newEdges List
adjacentCheck bool
cleanUp bool
리턴 void

FindEdgeByNodes() 공개 정적인 메소드

public static FindEdgeByNodes ( Node n1, Node n2, List _edges ) : Edge
n1 Node
n2 Node
_edges List
리턴 Edge

FindEdgeByNodes() 공개 정적인 메소드

public static FindEdgeByNodes ( string n1, string n2, List _edges ) : Edge
n1 string
n2 string
_edges List
리턴 Edge

FixIntersectingEdges() 공개 정적인 메소드

public static FixIntersectingEdges ( List &nodes, List &edges ) : bool
nodes List
edges List
리턴 bool

GetClosestEdge() 공개 정적인 메소드

Returns closest edge to the world point. Edge positions are changed to world coordinates in reference to refTransform.
public static GetClosestEdge ( Vector3 point, List nodes, List edges, Transform refTransform ) : Edge
point UnityEngine.Vector3
nodes List
edges List
refTransform UnityEngine.Transform
리턴 Edge

GetClosestNode() 공개 정적인 메소드

Returns closest node to the world point. Node positions are changed to world coordinates in reference to refTransform.
public static GetClosestNode ( Vector3 point, List nodes, Transform refTransform ) : Node
point UnityEngine.Vector3
nodes List
refTransform UnityEngine.Transform
리턴 Node

GetClosestPointOnEdge() 공개 정적인 메소드

Returns closest point on all the given edges. Edge positions are changed to world coordinates in reference to refTransform.
public static GetClosestPointOnEdge ( Vector3 point, List nodes, List edges, Transform refTransform, Edge &closestEdge ) : Vector3
point UnityEngine.Vector3
nodes List
edges List
refTransform UnityEngine.Transform
closestEdge Edge
리턴 UnityEngine.Vector3

GetEdge() 공개 정적인 메소드

public static GetEdge ( string id, List &_edges ) : Edge
id string
_edges List
리턴 Edge

GetEdgePosition() 공개 정적인 메소드

public static GetEdgePosition ( string id, List &_nodes, List &_edges, Transform transform = null ) : Vector3
id string
_nodes List
_edges List
transform UnityEngine.Transform
리턴 UnityEngine.Vector3

GetNode() 공개 정적인 메소드

public static GetNode ( int index, List &_nodes ) : Node
index int
_nodes List
리턴 Node

GetNode() 공개 정적인 메소드

public static GetNode ( string id, List &_nodes ) : Node
id string
_nodes List
리턴 Node

GetPointOnClosestEdge() 공개 정적인 메소드

Returns closest point on the closest point with given point
public static GetPointOnClosestEdge ( Vector3 point, List nodes, List edges, Transform refTransform ) : Vector3
point UnityEngine.Vector3
nodes List
edges List
refTransform UnityEngine.Transform
리턴 UnityEngine.Vector3

PointIsInside() 공개 정적인 메소드

Checks if given point is inside the edges. The point must be in the same space than node positions
public static PointIsInside ( Vector3 point, List nodes, List edges ) : bool
point UnityEngine.Vector3
nodes List
edges List
리턴 bool

RemoveEdgeAndCleanAdjacents() 공개 정적인 메소드

public static RemoveEdgeAndCleanAdjacents ( Node _n0, Node _n1, List &_nodes, List &_edges ) : Edge
_n0 Node
_n1 Node
_nodes List
_edges List
리턴 Edge

RemoveNodeAndCleanAdjacents() 공개 정적인 메소드

public static RemoveNodeAndCleanAdjacents ( Node n, List &_nodes, List &_edges ) : void
n Node
_nodes List
_edges List
리턴 void