• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API
Search Results for

    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
    • 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
      • AbstractDataLayer
      • AbstractLayer
      • AgentSchedulerLayer<TAgent, TLayer>
      • BoundDataSet
      • DisposeBase
      • MatrixRaster
      • QuerySourceLoader
      • Raster
      • Raster<TValue>
      • 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
      • IBoundedDataLayer
      • IChangingLayer
      • IDataContainer
      • IDataLayer
      • IDataSet
      • ILayer
      • IMarsDslLayer
      • IModalChoiceConsumer
      • InitSimulationStep
      • INotifyChangedSource<T>
      • IRaster
      • 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

    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

    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

    Empty

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

    Properties

    Height

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

    IsEmpty

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

    Width

    Represents the horizontal component of this Size.

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

    Methods

    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

    Equals(Size)

    Declaration
    public bool Equals(Size other)
    Parameters
    Type Name Description
    Size other
    Returns
    Type Description
    System.Boolean

    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)

    GetHashCode()

    Returns a hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    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

    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

    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

    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.

    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.

    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

    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

    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

    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.

    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.

    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.

    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.

    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
    In This Article
    Back to top © 2022 MARS GROUP