C# 클래스 EdgeGraph.Edge

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

공개 메소드들

메소드 설명
Edge ( ) : UnityEngine
Edge ( Edge edge ) : UnityEngine
Edge ( string _node1, string _node2 ) : UnityEngine
Edge ( string _node1, string _node2, float _width ) : UnityEngine
GetAdjacentNode ( Node current ) : string
GetAdjacentNode ( string current ) : string
GetClosestPointOnEdge ( Vector3 point, Vector3 _v1, Vector3 _v2 ) : Vector2

Returns closest point to an edge (v1,v2) in X-Z space.

GetLeftPerpendicular ( Vector3 v1, Vector3 v2 ) : Vector3
GetPerpendicularComparedToDirection ( Vector3 v1, Vector3 v2, Vector3 dir ) : Vector3
GetPerpendicularTowardsPoint ( Vector3 v1, Vector3 v2, Vector3 point ) : Vector3

Return left or right normal for edge, depending on which normal points towards the given point.

GetRightPerpendicular ( Vector3 v1, Vector3 v2 ) : Vector3
SplitEdge ( Edge edge, Vector3 point, List nodes, List edges, Node node = null ) : Node

Splits given edge into two edges at given point If a node is given, it will be used to split the edges Otherwise make a new node

메소드 상세

Edge() 공개 메소드

public Edge ( ) : UnityEngine
리턴 UnityEngine

Edge() 공개 메소드

public Edge ( Edge edge ) : UnityEngine
edge Edge
리턴 UnityEngine

Edge() 공개 메소드

public Edge ( string _node1, string _node2 ) : UnityEngine
_node1 string
_node2 string
리턴 UnityEngine

Edge() 공개 메소드

public Edge ( string _node1, string _node2, float _width ) : UnityEngine
_node1 string
_node2 string
_width float
리턴 UnityEngine

GetAdjacentNode() 공개 메소드

public GetAdjacentNode ( Node current ) : string
current Node
리턴 string

GetAdjacentNode() 공개 메소드

public GetAdjacentNode ( string current ) : string
current string
리턴 string

GetClosestPointOnEdge() 공개 정적인 메소드

Returns closest point to an edge (v1,v2) in X-Z space.
public static GetClosestPointOnEdge ( Vector3 point, Vector3 _v1, Vector3 _v2 ) : Vector2
point Vector3
_v1 Vector3
_v2 Vector3
리턴 Vector2

GetLeftPerpendicular() 공개 정적인 메소드

public static GetLeftPerpendicular ( Vector3 v1, Vector3 v2 ) : Vector3
v1 Vector3
v2 Vector3
리턴 Vector3

GetPerpendicularComparedToDirection() 공개 정적인 메소드

public static GetPerpendicularComparedToDirection ( Vector3 v1, Vector3 v2, Vector3 dir ) : Vector3
v1 Vector3
v2 Vector3
dir Vector3
리턴 Vector3

GetPerpendicularTowardsPoint() 공개 정적인 메소드

Return left or right normal for edge, depending on which normal points towards the given point.
public static GetPerpendicularTowardsPoint ( Vector3 v1, Vector3 v2, Vector3 point ) : Vector3
v1 Vector3
v2 Vector3
point Vector3
리턴 Vector3

GetRightPerpendicular() 공개 정적인 메소드

public static GetRightPerpendicular ( Vector3 v1, Vector3 v2 ) : Vector3
v1 Vector3
v2 Vector3
리턴 Vector3

SplitEdge() 공개 정적인 메소드

Splits given edge into two edges at given point If a node is given, it will be used to split the edges Otherwise make a new node
public static SplitEdge ( Edge edge, Vector3 point, List nodes, List edges, Node node = null ) : Node
edge Edge
point Vector3
nodes List
edges List
node Node
리턴 Node