Class CartesianEnvironment<TEntity>
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Inheritance
System.Object
CartesianEnvironment<TEntity>
Implements
ICartesianEnvironment<TEntity>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Environments.Cartesian
Assembly: Mars.Components.dll
Syntax
public class CartesianEnvironment<TEntity> : ICartesianEnvironment<TEntity> where TEntity : IVisible, ICollidable
Type Parameters
Name | Description |
---|---|
TEntity | The concrete type to manage in this environment. |
Constructors
| Improve this Doc View SourceCartesianEnvironment()
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public CartesianEnvironment()
Properties
| Improve this Doc View SourceDefaultCollision
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public CollisionKind DefaultCollision { get; set; }
Property Value
Type | Description |
---|---|
CollisionKind |
DefaultVisibility
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public VisibilityKind DefaultVisibility { get; set; }
Property Value
Type | Description |
---|---|
VisibilityKind |
Methods
| Improve this Doc View SourceExplore(ExplorationView)
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public IEnumerable<TEntity> Explore(ExplorationView explorationArea)
Parameters
Type | Name | Description |
---|---|---|
ExplorationView | explorationArea |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TEntity> |
Insert(TEntity, Geometry)
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public bool Insert(TEntity entity, Geometry geometry)
Parameters
Type | Name | Description |
---|---|---|
TEntity | entity | |
NetTopologySuite.Geometries.Geometry | geometry |
Returns
Type | Description |
---|---|
System.Boolean |
Move(TEntity, Double, Double)
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public Geometry Move(TEntity entity, double bearing, double distance)
Parameters
Type | Name | Description |
---|---|---|
TEntity | entity | |
System.Double | bearing | |
System.Double | distance |
Returns
Type | Description |
---|---|
NetTopologySuite.Geometries.Geometry |
Remove(TEntity)
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public bool Remove(TEntity entity)
Parameters
Type | Name | Description |
---|---|---|
TEntity | entity |
Returns
Type | Description |
---|---|
System.Boolean |
Rotate(TEntity, Double)
This environment implements the ICartesianEnvironment<TEntity> interface
and provides a spatial environment service to insert, remove, move and query spatial objects
based on given geometries (MULTI-) POINT, LINESTRING and POLYGONs.
Declaration
public Geometry Rotate(TEntity entity, double angle)
Parameters
Type | Name | Description |
---|---|---|
TEntity | entity | |
System.Double | angle |
Returns
Type | Description |
---|---|
NetTopologySuite.Geometries.Geometry |