Click or drag to resize

Point2D Structure

Represents a 2 dimensional point.
Inheritance Hierarchy
SystemObject
  SystemValueType
    RAYLASE.SPICE3.UtilsPoint2D

Namespace: RAYLASE.SPICE3.Utils
Assembly: RAYLASE.SPICE3.Utils (in RAYLASE.SPICE3.Utils.dll) Version: 3.4.1
Syntax
C#
[SerializableAttribute]
public struct Point2D

The Point2D type exposes the following members.

Properties
 NameDescription
Public propertyDimensionsEquals 2.
Public propertyItem Gets or sets the coordinate of the axis specified by index.
Public propertyMagnitude Returns the distance between this point and the zero point.
Public propertyX The X-coordinate.
Public propertyY The Y-coordinate.
Top
Methods
 NameDescription
Public methodEquals(Object) Specifies whether this point contains the same coordinates as the specified object.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Point2D) Specifies whether this point contains the same coordinates as the specified point.
Public methodStatic memberFromString Converts this point from a culture-invariant human-readable string, to the equivalent binary representation.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberToAxisString Returns a label of the specified axis.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(Int32) Converts this point in a human-readable format showing its coordinates with the specified number of decimal digits, using a culture invariant representation.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Double, Point2D) Adds a scalar to all the coordinates of a point, and returns a new point.
Public operatorStatic memberAddition(Point2D, Point2D) Adds the coordinates of two points, and returns the result as a new point.
Public operatorStatic memberAddition(Point2D, Double) Adds a scalar to all the coordinates of a point, and returns the result as a new point.
Public operatorStatic memberDivision(Point2D, Double) Divides all the coordinates of a point with a scalar, and returns the result as a new point.
Public operatorStatic memberEquality(Point2D, Point2D) Compares two points with each other, and returns true if all coordinates are equal.
Public operatorStatic memberInequality(Point2D, Point2D) Compares two points with each other, and returns true if at least one pair of coordinates are different.
Public operatorStatic memberMultiply(Double, Point2D) Multiplies all the coordinates of a point with a scalar, and returns the result as a new point.
Public operatorStatic memberMultiply(Point2D, Double) Multiplies all the coordinates of a point with a scalar, and returns the result as a new point.
Public operatorStatic memberSubtraction(Double, Point2D) Subtracts all the coordinates of a point from a scalar, and returns the result as a new point.
Public operatorStatic memberSubtraction(Point2D, Point2D) Subtracts the coordinates of two points, and returns the result as a new point.
Public operatorStatic memberSubtraction(Point2D, Double) Subtracts a scalar from all the coordinates of a point, and returns the result as a new point.
Top
Fields
 NameDescription
Public fieldStatic memberZero Point initialized by zero for every axis.
Top
See Also