C# Class RoadSegment, City-Generator

Afficher le fichier Open project: cybercritic/City-Generator Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetVector3() public méthode

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

IsEqual() public méthode

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

RoadSegment() public méthode

public RoadSegment ( RoadPoint, a, RoadPoint, b, int level ) : System.Collections
a RoadPoint,
b RoadPoint,
level int
Résultat System.Collections

SegmentLength() public méthode

public SegmentLength ( ) : float
Résultat float