• MARS Website
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API
Show / Hide Table of Contents
  • Mars.Components
    • DependencyRegistrationModelling
  • Mars.Components.Agents
    • AbstractAgent
    • AbstractEntity
    • Agent
  • Mars.Components.Environments
    • AbstractEnvironment
    • AbstractGraphElement
    • AlwaysPassingNodeGuard
    • EntityLane<TEntity>
    • GeoEnvironment
    • GeoHashEnvironment<T>
    • IEnvironmentMediator
    • IModalChoiceResolver
    • PathHeuristics
    • SpatialEdge
    • SpatialGraphEntityExtensions
    • SpatialGraphEnvironment
    • SpatialGraphHelper
    • SpatialHashEnvironment<TEntity>
    • SpatialLane
    • SpatialNode
    • WorldIndexExtensions
  • Mars.Components.Environments.Cartesian
    • CartesianEnvironment<TEntity>
    • CollisionEnvironment<TCharacter, TObstacle>
    • CollisionKind
    • ConeExplorationView
    • ExplorationView
    • GeometryFactory
    • ICartesianEnvironment<TEntity>
    • ICharacter
    • ICollidable
    • ICollisionEnvironment<TCharacter, TObstacle>
    • IObstacle
    • IVisible
    • RayExplorationView
    • TrapezoidExploration
    • VisibilityKind
  • Mars.Components.Environments.Cartesian.Routing
    • CartesianRoutingService<TObstacle>
    • GeometryCoordinatesRoutingPointsGenerator
    • HomogenousRoutingPointsGenerator
    • IRoutingPointsGenerator
    • RandomRoutingPointsGenerator
    • SectionalRandomRoutingPointsGenerator
  • Mars.Components.Layers
    • AbstractActiveLayer
    • AbstractEnvelopedLayer
    • AbstractLayer
    • AbstractVectorFeature
    • AgentSchedulerLayer<TAgent, TLayer>
    • QuerySourceLoader
    • RasterLayer
    • SchedulerEntry
    • SchedulerLayer
    • VectorFeature
    • VectorLayer
    • VectorLayer<T>
    • VectorLayerHelper
  • Mars.Components.Layers.Temporal
    • IQueryFieldProvider
    • ITemporalObjectCatalog
    • ITemporalObjectIterator
    • TemporalCatalogFeature<TKey>
    • TemporalFeatureKind
    • TemporalMetadataLoader
  • Mars.Components.Services
    • AgentManager
  • Mars.Components.Services.Explorations
    • BoltzmannExploration
    • EpsilonGreedyExploration
    • IExplorationPolicy
    • RouletteWheelExploration
    • TabuSearchExploration
  • Mars.Components.Services.Learning
    • InfiniteQLearning
    • QLearning
    • Sarsa
  • Mars.Components.Services.Planning
    • ActionPlanResult
    • GoapAction
    • GoapAgentStates
    • GoapGoal
    • GoapPlanner
    • GoapStateKey<T>
    • GoapStateProperty
    • GoapStateProperty<TElement>
    • IGoapAction
    • IGoapAgentStates
    • IGoapGoal
    • IGoapPlanner
    • IGoapStateKey
    • StatesCommons
  • Mars.Components.Services.Planning.ActionCommons
    • AllGoalsSatisfiedAction
    • NoGoalReachableAction
  • Mars.Components.Starter
    • Command
    • CommandArgumentContainer
    • CommandParser
    • CommandSet
    • HelpCommand
    • Option
    • OptionContext
    • OptionException
    • OptionSet
    • OptionValueCollection
    • OptionValueType
    • SimulationStarter
  • Mars.Components.Starter.Exceptions
    • SimulationStartupException
  • Mars.Interfaces
    • IModelObject
    • ISimulationContainer
    • ISimulationContext
    • ISimulationModule
    • ISimulationState
    • IStepExecutionContext
    • SimulationContext
    • SimulationContext.WorkflowStateType
    • StepExecutionContext
  • Mars.Interfaces.Agents
    • IAgent
    • IAgent<TLayer>
    • IEntity
    • IMarsDslAgent
    • IModalCapabilitiesAgent
    • ISpatialGraphEntity
    • ITickClient
  • Mars.Interfaces.Annotations
    • ActiveConstructor
    • PropertyDescription
  • Mars.Interfaces.Data
    • AbstractDomainData
    • GeometryData
    • IDomainData
    • IGeometryData
    • IIdentifiableData
    • IMarsFeature
    • IRasterBandData
    • ISource
    • IStringData
    • IStringStructuredData
    • IStructuredData
    • IStructuredDataGeometry
    • IValueData
    • LayerInitData
    • RasterBandData
    • StringDataDto
    • StructuredData
    • VectorStructuredData
  • Mars.Interfaces.Environments
    • BoundingBox
    • DirectionType
    • EdgeExploreResult
    • EdgeStop
    • ExploreDirection
    • GeoPositionExtension
    • HighwayType
    • IEdge<TEdge, TNode>
    • IEntityLane<TEntity>
    • IEnvironment
    • IEnvironment<TEntity>
    • IGeoGridEnvironment<T>
    • IGraphEntity
    • IGraphEnvironment<TEdge, TNode>
    • INode<TEdge, TNode>
    • INodeGuard
    • IPositionable
    • IRoutePlanner
    • ISpatialEdge
    • ISpatialGraphEnvironment
    • ISpatialLane
    • ISpatialNode
    • LaneExploreResult
    • ModalChoice
    • MultimodalRoute
    • NodeIntegrationKind
    • Position
    • Route
    • RouteStop
    • Size
    • SpatialGraphExploreResult
    • SpatialModalityType
    • TrafficLightPhase
  • Mars.Interfaces.Layers
    • FinallySimulationStep
    • IChangingLayer
    • IDataContainer
    • IDataLayer
    • IDataSet
    • IEnvelopDataLayer
    • ILayer
    • IMarsDslLayer
    • IModalChoiceConsumer
    • InitSimulationStep
    • INotifyChangedSource<T>
    • IRaster<TValue>
    • IRasterLayer
    • ISteppedActiveLayer
    • IVectorFeature
    • IVectorLayer
    • IVectorLayer<T>
    • IVectorNode<TEntity>
    • RegisterAgent
    • UnregisterAgent
  • Mars.Interfaces.Model
    • ActiveTypeMapping
    • AgentMapping
    • AgentType
    • ConstructorType
    • ContainsOperator
    • DataContainer
    • DataType
    • EntityMapping
    • EntityType
    • Execution
    • FeatureType
    • Globals
    • IdentifiableElement
    • IndividualMapping
    • Input
    • InputConfiguration
    • LayerMapping
    • LayerType
    • ModelDescription
    • ModelElement
    • ObjectType
    • Output
    • OutputConfiguration
    • OutputFilter
    • OutputKind
    • OutputTargetType
    • ParameterMapping
    • Processing
    • ProcessingConfiguration
    • ProcessingTargetType
    • PropertyType
    • SimulationConfig
    • TimeSpanUnit
    • TimeSpanUnitExtensions
    • TypeElement
    • TypeMapping
  • Mars.Interfaces.Model.Converters
    • CultureConverter
    • SerializationTypeConverter
    • TimeSpanUnitConverter
  • Mars.Interfaces.Model.Exceptions
    • InvalidTypeException
    • MissingTypeException
  • Mars.Interfaces.Model.Options
    • AbstractEndpointOptions
    • AbstractFileOptions
    • AbstractOptions
    • AscOptions
    • CsvOptions
    • GeoJsonOptions
    • MongoOptions
    • MqttOptions
    • PostgresSqlOptions
    • RedisOptions
    • RelationalEndpointOptions
    • SerializationType
    • SocketOutputOptions
    • SpatialGraphOptions
    • SqLiteOptions
    • TripsOptions

Struct Size

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Interfaces.Environments
Assembly: Mars.Interfaces.dll
Syntax
public struct Size

Constructors

| Improve this Doc View Source

Size(Position)

Create a new Size object from a point

Initializes a new instance of the Size class from the specified Position.

Declaration
public Size(Position pt)
Parameters
Type Name Description
Position pt
| Improve this Doc View Source

Size(Double, Double)

Create a new Size object of the specified dimension Initializes a new instance of the Size class from the specified dimensions.
Declaration
public Size(double width, double height)
Parameters
Type Name Description
System.Double width
System.Double height

Fields

| Improve this Doc View Source

Empty

Initializes a new instance of the Size class.
Declaration
public static readonly Size Empty
Field Value
Type Description
Size

Properties

| Improve this Doc View Source

Height

Vertical dimension Represents the vertical component of this Size.
Declaration
public double Height { readonly get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

IsEmpty

Tests whether this Size has zero width and height.
Declaration
public readonly bool IsEmpty { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Width

Represents the horizontal component of this Size.

Declaration
public double Width { readonly get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Add(Size, Size)

Performs vector addition of two Size objects.

Declaration
public static Size Add(Size sz1, Size sz2)
Parameters
Type Name Description
Size sz1
Size sz2
Returns
Type Description
Size
| Improve this Doc View Source

Equals(Size)

Declaration
public bool Equals(Size other)
Parameters
Type Name Description
Size other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Tests to see whether the specified object is a Size with the same dimensions as this Size.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a hash code.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

Subtract(Size, Size)

Contracts a System.Drawing.Size by another System.Drawing.Size .

Declaration
public static Size Subtract(Size sz1, Size sz2)
Parameters
Type Name Description
Size sz1
Size sz2
Returns
Type Description
Size
| Improve this Doc View Source

ToString()

Creates a human-readable string that represents this Size.

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

Operators

| Improve this Doc View Source

Addition(Size, Size)

Performs vector addition of two Size objects.

Declaration
public static Size operator +(Size sz1, Size sz2)
Parameters
Type Name Description
Size sz1
Size sz2
Returns
Type Description
Size
| Improve this Doc View Source

Division(Size, Double)

Divides Size by an System.Int32 producing Size.
Declaration
public static Size operator /(Size left, double right)
Parameters
Type Name Description
Size left Dividend of type Size.
System.Double right Divisor of type System.Int32.
Returns
Type Description
Size Result of type Size.
| Improve this Doc View Source

Division(Size, Single)

Divides Size by a System.Single producing Size.
Declaration
public static Size operator /(Size left, float right)
Parameters
Type Name Description
Size left Dividend of type Size.
System.Single right Divisor of type System.Int32.
Returns
Type Description
Size Result of type Size.
| Improve this Doc View Source

Equality(Size, Size)

Tests whether two Size objects are identical.
Declaration
public static bool operator ==(Size sz1, Size sz2)
Parameters
Type Name Description
Size sz1
Size sz2
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Explicit(Size to Position)

Converts the specified Size to a Position.
Declaration
public static explicit operator Position(Size size)
Parameters
Type Name Description
Size size
Returns
Type Description
Position
| Improve this Doc View Source

Inequality(Size, Size)

Tests whether two Size objects are different.

Declaration
public static bool operator !=(Size sz1, Size sz2)
Parameters
Type Name Description
Size sz1
Size sz2
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Multiply(Size, Double)

Multiplies Size by an System.Int32 producing Size.
Declaration
public static Size operator *(Size left, double right)
Parameters
Type Name Description
Size left Multiplicand of type Size.
System.Double right Multiplier of type System.Int32.
Returns
Type Description
Size Product of type Size.
| Improve this Doc View Source

Multiply(Size, Single)

Multiplies Size by a System.Single producing Size.
Declaration
public static Size operator *(Size left, float right)
Parameters
Type Name Description
Size left Multiplicand of type Size.
System.Single right Multiplier of type System.Single.
Returns
Type Description
Size Product of type Size.
| Improve this Doc View Source

Multiply(Double, Size)

Multiplies a Size by an System.Int32 producing Size.
Declaration
public static Size operator *(double left, Size right)
Parameters
Type Name Description
System.Double left Multiplier of type System.Int32.
Size right Multiplicand of type Size.
Returns
Type Description
Size Product of type Size.
| Improve this Doc View Source

Multiply(Single, Size)

Multiplies Size by a System.Single producing Size.
Declaration
public static Size operator *(float left, Size right)
Parameters
Type Name Description
System.Single left Multiplier of type System.Single.
Size right Multiplicand of type Size.
Returns
Type Description
Size Product of type Size.
| Improve this Doc View Source

Subtraction(Size, Size)

Contracts a Size by another Size

Declaration
public static Size operator -(Size sz1, Size sz2)
Parameters
Type Name Description
Size sz1
Size sz2
Returns
Type Description
Size

Extension Methods

Serializer.Save<T>(T, out Byte[], SerializerCompression)
Serializer.Save<T>(T, Stream, SerializerCompression)
Serializer.Save<T>(T, BinaryFormatter, Stream, SerializerCompression)
Serializer.Save<T>(T, String, SerializerCompression)
Serializer.Save<T>(T, String)
Ext.ToByteArray<T>(T, ByteOrder)
Matrix.Concatenate<T>(T, T[])
DomainDataImporter.Import(Object, InputConfiguration)
ObjectSerialize.Serialize(Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg