Rectangle ClassMathos Core Library 1.0.5.1 (changeset 39720)
This documentation is compiled for the latest release of Mathos Core Library
Rectangle shape
Inheritance Hierarchy

SystemObject
  Mathos.Geometry.ShapesRectangle

Namespace: Mathos.Geometry.Shapes
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Syntax

public class Rectangle : IShape2D

The Rectangle type exposes the following members.

Constructors

  NameDescription
Public methodRectangle
Default constructor
Public methodRectangle(Double, Double)
Constructor with a length and width
Top
Methods

  NameDescription
Public methodEquals(Object) (Overrides ObjectEquals(Object).)
Public methodEquals(Rectangle)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
The equalto operator
Public operatorStatic memberInequality
The not-equalto operator
Top
Extension Methods

  NameDescription
Public Extension MethodFrom(Enum)Overloaded.
(Defined by Converter.)
Public Extension MethodFrom(Base)Overloaded.
(Defined by Converter.)
Top
Properties

  NameDescription
Public propertyArea
Gets the area of the rectangle
Public propertyDiagonal
Gets the diagonal of the rectangle
Public propertyLength
Gets or sets the length of the rectangle
Public propertyPerimeter
Gets the perimeter of the rectangle
Public propertyWidth
Gets or sets the width of the rectangle
Top
See Also

Reference