Size2D Class

Defines a 2D size.
Public Class Size2D 
Inherits Point2D
This language is not supported or no code example is available.
public class Size2D : Point2D
This language is not supported or no code example is available.
Name Description
Public constructor Size2D(Point2D, Point2D) Two 2D points constructor.
Public constructor Size2D(double, double) Standard constructor.
Top
Name Description
Public property AsVector (inherited from Point2D).
Public property Diagonal Returns the rectangle diagonal length.
Public property Max Gets the maximum rectangle dimension.
Public property Static MaxValue Returns a 2D point with coordinates at double.MaxValue. (inherited from Point2D).
Public property MaximumCoordinate Gets the absolute value of the maximum coordinate. (inherited from Point2D).
Public property Min Gets the minimum rectangle dimension.
Public property Static MinValue Returns a 2D point with coordinates at double.MinValue. (inherited from Point2D).
Public property Static Origin Returns a 2D point at origin. (inherited from Point2D).
Top
Methods
 
Name Description
Public method Static AreEqual(Point2D, Point2D, double) Compares two 2D points in the given domain. (inherited from Point2D).
Public method Clone() Creates a deep copy of this 2D point. (inherited from Point2D).
Public method ConvertToSurrogate() (inherited from Point2D).
Public method Static Distance(Point2D, Point2D) Computes the distance between two 2D points. (inherited from Point2D).
Public method Static DistanceSquared(Point2D, Point2D) Computes the squared distance between two 2D points. (inherited from Point2D).
Public method DistanceTo(Point2D) Computes the distance to 2D point b. (inherited from Point2D).
Public method DistanceTo(Segment2D) Computes the point-line distance. (inherited from Point2D).
Public method Equals(Point2D) (inherited from Point2D).
Public method Equals(object) Determines whether the specified object is equal to the current object. (inherited from Point2D).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode() Serves as the default hash function. (inherited from Point2D).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetXElement() (inherited from Point2D).
Public method IsValid() Returns true if the point's coordinates are reasonable values. (inherited from Point2D).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static MidPoint(Point2D, Point2D) Computes the midpoint between two 2D points. (inherited from Point2D).
Public method ProjectTo(Segment2D) Project this point onto a 2D segment. (inherited from Point2D).
Public method Static ReadXml(XmlNode) (inherited from Point2D).
Public method Static ReadXml(string) (inherited from Point2D).
Public method ToArray() Returns an array of point's coordinates. (inherited from Point2D).
Public method ToString() Converts this 2D point to a human readable string. (inherited from Point2D).
Public method ToStringXml() Converts this 2D point to a human readable string. (inherited from Point2D).
Public method TransformBy(Transformation) Transforms the 2D point by the specified transformation. (inherited from Point2D).
Public method WriteXml(XmlTextWriter) (inherited from Point2D).
Top
Name Description
Operator Static Addition Addition between two 2D points. (inherited from Point2D).
Operator Static Addition Addition between a 2D point and a 2D vector. (inherited from Point2D).
Operator Static Addition Addition between a 2D vector and a 2D point. (inherited from Point2D).
Operator Static Division Division between a 2D point and a scalar value. (inherited from Point2D).
Operator Static Equality (inherited from Point2D).
Operator Static Inequality (inherited from Point2D).
Operator Static Multiply Product between a 2D point and a scalar value. (inherited from Point2D).
Operator Static Multiply Product between a scalar value and a 2D point. (inherited from Point2D).
Operator Static Subtraction Subtraction between two 2D points. (inherited from Point2D).
Operator Static Subtraction Subtraction between a 2D point and a 2D vector. (inherited from Point2D).
Operator Static Subtraction Subtraction between a 2D vector and a 2D point. (inherited from Point2D).
Top
Name Description
Public extension method DrawGL(this Point2D) Calls glVertex2d(X, Y) (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this Point3D) Calls glVertex3d(X, Y, Z). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointNormalUv) Calls glNormal3d(Nx, Ny, Nz) and glVertex3d(X, Y, Z) (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointNormalUv, Color[]) For internal use only. (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointRGB) Calls gl.Color3ub(R, G, B) and glVertex3d(X, Y, Z). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointWithDisplacement, double) Calls gl.Vertex3d(X+UX, Y+UY, Z+UZ). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this Vector3D) Calls gl.Normal3d(X, Y, Z) (Defined by ExtensionMethodsGL).
Top
Fields
 
Name Description
Public field X X coordinate value. (inherited from Point2D).
Public field Y Y coordinate value. (inherited from Point2D).
Top

.NET Framework

Supported in: 4.8

In this article

Definition