C# Класс RoadSegment, City-Generator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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