C# 클래스 RoadSegment, City-Generator

파일 보기 프로젝트 열기: cybercritic/City-Generator 1 사용 예제들

공개 메소드들

메소드 설명
GetOther ( RoadPoint, main ) : RoadPoint,

get other segment point given one of them

GetVector3 ( bool first ) : Vector3

convert Vector2 roadpoint position to Vector3

IsEqual ( RoadSegment, segment ) : bool

Determines whether this instance is equal the specified segment.

RoadSegment ( RoadPoint, a, RoadPoint, b, int level ) : System.Collections
SegmentLength ( ) : float

메소드 상세

GetOther() 공개 메소드

get other segment point given one of them
public GetOther ( RoadPoint, main ) : RoadPoint,
main RoadPoint,
리턴 RoadPoint,

GetVector3() 공개 메소드

convert Vector2 roadpoint position to Vector3
public GetVector3 ( bool first ) : Vector3
first bool first or second point return?
리턴 Vector3

IsEqual() 공개 메소드

Determines whether this instance is equal the specified segment.
public IsEqual ( RoadSegment, segment ) : bool
segment RoadSegment, Segment.
리턴 bool

RoadSegment() 공개 메소드

public RoadSegment ( RoadPoint, a, RoadPoint, b, int level ) : System.Collections
a RoadPoint,
b RoadPoint,
level int
리턴 System.Collections

SegmentLength() 공개 메소드

public SegmentLength ( ) : float
리턴 float