Google.Maps.Feature.Stitching.IStitchableFeature

An interface implemented by features that have a characteristic outline, or collection of outlines that can be represented as an enumeration of 2d vertices, e.g., Google.Maps.Feature.Region and Google.Maps.Feature.ExtrudedStructure

Summary

Inheritance

Direct Known Subclasses:Google.Maps.Feature.ExtrudedStructure

Public functions

GetBoundary()
IEnumerable< Vector2 >
Returns the 2d vertices representing the outline of this feature relative to the origin returned by GetBoundaryOrigin.
GetBoundaryOrigin()
Vector2
Returns the origin that the vertices returned by GetBoundary are relative to.

Public functions

GetBoundary

IEnumerable< Vector2 > GetBoundary()

Returns the 2d vertices representing the outline of this feature relative to the origin returned by GetBoundaryOrigin.

The boundary is returned relative to an origin for efficiency, as it is stored this way in, e.g., ExtrudedStructure.

Details
Returns
Boundary vertices relative to BoundaryOrigin

GetBoundaryOrigin

Vector2 GetBoundaryOrigin()

Returns the origin that the vertices returned by GetBoundary are relative to.

This prevents GetBoundary from having to create a new offset copy of boundary vertices every time it is called.

Details
Returns
Tilespace boundary origin.