Skip to content

8606dc52 c013 f78e fa72 355eb2175ebc

Kim Hugener-Ohlsen edited this page May 28, 2016 · 2 revisions

Area Class

Represents an area quantity.

Represents an area quantity.

Inheritance Hierarchy

System.Object
  Sundew.Quantities.Engine.Quantities.Quantity(Area)
    Sundew.Quantities.Engine.Quantities.Quantity(Area, DistanceUnitSelector)
      Sundew.Quantities.Spatial.Area
Namespace: Sundew.Quantities.Spatial
Assembly: Sundew.Quantities (in Sundew.Quantities.dll) Version: 1.0.2.0 (1.0.2.0)

Syntax

C#

public sealed class Area : Quantity<Area, DistanceUnitSelector>

C#

public sealed class Area : Quantity<Area, DistanceUnitSelector>

VB

Public NotInheritable Class Area
	Inherits Quantity(Of Area, DistanceUnitSelector)

VB

Public NotInheritable Class Area
	Inherits Quantity(Of Area, DistanceUnitSelector)

C++

public ref class Area sealed : public Quantity<Area^, DistanceUnitSelector^>

C++

public ref class Area sealed : public Quantity<Area^, DistanceUnitSelector^>

F#

[<SealedAttribute>]
type Area =  
    class
        inherit Quantity<Area, DistanceUnitSelector>
    end

F#

[<SealedAttribute>]
type Area =  
    class
        inherit Quantity<Area, DistanceUnitSelector>
    end

The Area type exposes the following members.

Constructors

 

Name Description
Public method Area(Double) Initializes a new instance of the Area class.
Public method Area(IQuantity) Initializes a new instance of the Area class.
Public method Area(Double, IUnit) Initializes a new instance of the Area class.
Public method Area(Double, SelectUnit(DistanceUnitSelector)) Initializes a new instance of the Area class.
  Back to Top

Properties

 

Name Description
Public property Unit Gets the unit. (Inherited from Quantity(TQuantity).)
Public property Value Gets the value. (Inherited from Quantity(TQuantity).)
  Back to Top

Methods

 

Name Description
Public method CompareTo(Object) Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. (Inherited from Quantity(TQuantity).)
Public method CompareTo(TQuantity) Compares this instance the specified quantity. (Inherited from Quantity(TQuantity).)
Public method CompareTo(IQuantity) Compares the quantity to this instance. (Inherited from Quantity(TQuantity).)
Public method CreateQuantity Creates an area quantity. (Overrides Quantity(TQuantity).CreateQuantity(Double, IUnit).)
Public method CreateUnitSelector Creates the area unit selector. (Overrides Quantity(TQuantity, TUnitSelector).CreateUnitSelector().)
Public method Cubed Cubes this instance. (Inherited from Quantity(TQuantity).)
Public method Equals(Object) Determines whether the specified Object is equal to this instance. (Inherited from Quantity(TQuantity).)
Public method Equals(TQuantity) Checks if this instance is equal to the specified quantity. (Inherited from Quantity(TQuantity).)
Public method Equals(IQuantity) Determines whether the specified quantity is equal to this instance. (Inherited from Quantity(TQuantity).)
Public method GetHashCode Returns a hash code for this instance. (Inherited from Quantity(TQuantity).)
Public method GetResult Gets the result. (Inherited from Quantity(TQuantity).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Interval Creates a interval based on the specified min, max and unit.
Public method Squared Squares this instance. (Inherited from Quantity(TQuantity).)
Public method ToDouble(IUnit) Converts this object to a Double using the specified unit. (Inherited from Quantity(TQuantity).)
Public method ToDouble(SelectUnit(TUnitSelector)) Converts this object to a Double using the unit specified by the [!:TUnitSelector]. (Inherited from Quantity(TQuantity, TUnitSelector).)
Public method ToQuantity Converts this object to a IQuantity using the unit specified by the IUnit. (Inherited from Quantity(TQuantity).)
Public method ToString() Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(IFormatProvider) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(String) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(UnitFormat) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(String, IFormatProvider) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(UnitFormat, IFormatProvider) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(UnitFormat, String) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToString(UnitFormat, String, IFormatProvider) Returns a String that represents this instance. (Inherited from Quantity(TQuantity).)
Public method ToUnit(IUnit) Converts this object to a [!:TQuantity] using the specified unit. (Inherited from Quantity(TQuantity).)
Public method ToUnit(SelectUnit(TUnitSelector)) Converts this object to a [!:TQuantity] using the unit specified by the [!:TUnitSelector]. (Inherited from Quantity(TQuantity, TUnitSelector).)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Decrement Decrements the specified LHS with 1.
Public operatorStatic member Division Divides the specified LHS and RHS.
Public operatorStatic member Implicit(Squared(Distance) to Area) Performs an implicit conversion from Squared(TBase) to Area.
Public operatorStatic member Increment Increments the specified LHS with 1.
Public operatorStatic member Multiply Multiplies the specified LHS and RHS.
  Back to Top

See Also

Reference

Sundew.Quantities.Spatial Namespace

Clone this wiki locally