C# Class RoadSegment, City-Generator

ファイルを表示 Open project: cybercritic/City-Generator Class Usage Examples

Public Methods

Method Description
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

Method Details

GetOther() public method

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

GetVector3() public method

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

IsEqual() public method

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

RoadSegment() public method

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

SegmentLength() public method

public SegmentLength ( ) : float
return float