Google.Maps.Unity.Intersections.RoadLatticeSegment.TaggedLocation

A vertex definition giving the location of the vertex and a tag indicating if the vertex if on a Tile boundary.

Summary

Constructors and Destructors

TaggedLocation(Vector2 location, bool onBoundary, RoadLatticeNode.Source source)
Constructor.

Public attributes

Location
readonly Vector2
The location.
OnBoundary
readonly bool
Whether this location is on a tile boundary.
Source
readonly RoadLatticeNode.Source
Indicates if this node came from the server of was generated on the client, e.g., by segment intersection detection.

Public functions

Round(float epsilon)
Rounds the coordinates of the nearest multiple of the supplied rounding factor.
ToString()
override string

Public attributes

Location

readonly Vector2 Google::Maps::Unity::Intersections::RoadLatticeSegment::TaggedLocation::Location

The location.

OnBoundary

readonly bool Google::Maps::Unity::Intersections::RoadLatticeSegment::TaggedLocation::OnBoundary

Whether this location is on a tile boundary.

Source

readonly RoadLatticeNode.Source Google::Maps::Unity::Intersections::RoadLatticeSegment::TaggedLocation::Source

Indicates if this node came from the server of was generated on the client, e.g., by segment intersection detection.

Public functions

Round

TaggedLocation Google::Maps::Unity::Intersections::RoadLatticeSegment::TaggedLocation::Round(
  float epsilon
)

Rounds the coordinates of the nearest multiple of the supplied rounding factor.

This rounding involves dividing coordinates by the rounding factor, so care should be taken to avoid floating point (over/under)flow.

Details
Parameters
epsilon
The granularity to which to round coordinates.
Returns
A new, rounded TaggedLocation

TaggedLocation

 Google::Maps::Unity::Intersections::RoadLatticeSegment::TaggedLocation::TaggedLocation(
  Vector2 location,
  bool onBoundary,
  RoadLatticeNode.Source source
)

Constructor.

Details
Parameters
location
Location in world space.
onBoundary
Whether the location is on a tile boundary.
source
Whether this location is from server or client generated.

ToString

override string Google::Maps::Unity::Intersections::RoadLatticeSegment::TaggedLocation::ToString()