Class CollisionEnvironment<TCharacter, TObstacle>
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Inheritance
System.Object
CollisionEnvironment<TCharacter, TObstacle>
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 CollisionEnvironment<TCharacter, TObstacle> : ICollisionEnvironment<TCharacter, TObstacle>, IEnvironment, IModelObject where TCharacter : ICharacter where TObstacle : IObstacle
Type Parameters
Name | Description |
---|---|
TCharacter | The concrete type which can move within the environment. |
TObstacle | The concrete type used for collision. |
Constructors
| Improve this Doc View SourceCollisionEnvironment()
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public CollisionEnvironment()
Properties
| Improve this Doc View SourceBoundingBox
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public BoundingBox BoundingBox { get; set; }
Property Value
Type | Description |
---|---|
BoundingBox |
Characters
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public IEnumerable<TCharacter> Characters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TCharacter> |
DefaultCollision
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public CollisionKind DefaultCollision { get; set; }
Property Value
Type | Description |
---|---|
CollisionKind |
DefaultVisibility
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public VisibilityKind DefaultVisibility { get; set; }
Property Value
Type | Description |
---|---|
VisibilityKind |
RoutingPointsCount
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public int RoutingPointsCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RoutingPointsGenerator
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public IRoutingPointsGenerator RoutingPointsGenerator { get; set; }
Property Value
Type | Description |
---|---|
IRoutingPointsGenerator |
Methods
| Improve this Doc View SourceExploreCharacters(TCharacter, Geometry, Func<TCharacter, Boolean>)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public IEnumerable<TCharacter> ExploreCharacters(TCharacter source, Geometry intersectingArea, Func<TCharacter, bool> predicate = null)
Parameters
Type | Name | Description |
---|---|---|
TCharacter | source | |
NetTopologySuite.Geometries.Geometry | intersectingArea | |
System.Func<TCharacter, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TCharacter> |
ExploreObstacles(Geometry, Func<TObstacle, Boolean>)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public IEnumerable<TObstacle> ExploreObstacles(Geometry intersectingArea, Func<TObstacle, bool> predicate = null)
Parameters
Type | Name | Description |
---|---|---|
NetTopologySuite.Geometries.Geometry | intersectingArea | |
System.Func<TObstacle, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TObstacle> |
FindRoute(TCharacter, Position)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public IEnumerable<Position> FindRoute(TCharacter character, Position goal)
Parameters
Type | Name | Description |
---|---|---|
TCharacter | character | |
Position | goal |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Position> |
Insert(TCharacter, Position)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public bool Insert(TCharacter character, Position position)
Parameters
Type | Name | Description |
---|---|---|
TCharacter | character | |
Position | position |
Returns
Type | Description |
---|---|
System.Boolean |
Insert(TObstacle, Geometry)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public bool Insert(TObstacle obstacle, Geometry geometry)
Parameters
Type | Name | Description |
---|---|---|
TObstacle | obstacle | |
NetTopologySuite.Geometries.Geometry | geometry |
Returns
Type | Description |
---|---|
System.Boolean |
Move(TCharacter, Double, Double)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public Position Move(TCharacter character, double bearing, double distance)
Parameters
Type | Name | Description |
---|---|---|
TCharacter | character | |
System.Double | bearing | |
System.Double | distance |
Returns
Type | Description |
---|---|
Position |
PosAt(TCharacter, Position)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public Position PosAt(TCharacter character, Position target)
Parameters
Type | Name | Description |
---|---|---|
TCharacter | character | |
Position | target |
Returns
Type | Description |
---|---|
Position |
PrintMeshAndGeometries(String, String)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public void PrintMeshAndGeometries(string meshPath = "mesh.geojson", string geometriesPath = "geometries.geojson")
Parameters
Type | Name | Description |
---|---|---|
System.String | meshPath | |
System.String | geometriesPath |
Remove(TCharacter)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public bool Remove(TCharacter character)
Parameters
Type | Name | Description |
---|---|---|
TCharacter | character |
Returns
Type | Description |
---|---|
System.Boolean |
Remove(TObstacle)
This class provide a cartesian IEnvironment implementation,
used in conjunction with single and multi-point geometries.
Declaration
public bool Remove(TObstacle obstacle)
Parameters
Type | Name | Description |
---|---|---|
TObstacle | obstacle |
Returns
Type | Description |
---|---|
System.Boolean |