Click or drag to resize

PointD2D Structure

Represents a point with values of type Double in 2D space.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.GeometryPointD2D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
[SerializableAttribute]
public struct PointD2D

The PointD2D type exposes the following members.

Constructors
 NameDescription
Public methodPointD2D Initializes a new instance of the PointD2D struct.
Top
Properties
 NameDescription
Public propertyStatic memberEmpty Gets an empty point (0,0).
Public propertyIsEmpty Gets a value indicating whether this point is empty (both components are zero).
Public propertyIsNaN Gets a value indicating whether one of the members of this instance is NaN.
Public propertyVectorLength Gets the vector length of this point.
Public propertyVectorLengthSquared Gets the squared vector length of this point.
Public propertyX Gets the x component of this point.
Public propertyY Gets the y component of this point.
Top
Methods
 NameDescription
Public methodDeconstruct Deconstructs this point into its x and y components.
Public methodStatic memberDistance Calculates the distance between two points.
Public methodStatic memberDistanceSquared Calculates the squared distance between two points.
Public methodDistanceSquaredTo Calculates the squared distance between this point and another point.
Public methodDistanceTo Calculates the distance between this point and another point.
Public methodDotProduct(PointD2D) Calculates the dot product of this point and another point.
Public methodStatic memberDotProduct(PointD2D, PointD2D) Calculates the dot product of two points.
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodGet90DegreeRotated Gets a new point rotated by 90 degrees counterclockwise.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetMemberwiseAbs Gets a new point with both components replaced by their absolute values.
Public methodGetNormalized Gets a normalized version of this point (length 1).
Public methodGetRotatedByDegree(Double) Gets a new point rotated by a specified angle in degrees around the origin.
Public methodGetRotatedByDegree(Double, PointD2D) Gets a new point rotated by a specified angle in degrees around a pivot.
Public methodGetRotatedByRad(Double) Gets a new point rotated by a specified angle in radians around the origin.
Public methodGetRotatedByRad(Double, PointD2D) Gets a new point rotated by a specified angle in radians around a pivot.
Public methodGetSignFlipped Gets a new point with both components sign-flipped.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetXYFlipped Gets a new point with x and y components flipped.
Public methodStatic memberIsPointIntoDistance Determines whether or not a given point (point) is into a distance to a finite line, that is spanned between two points lineOrg and lineEnd.
Public methodStatic memberSquareDistanceLineToPoint Calculates the squared distance between a finite line and a point.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodWithX Returns a new instance with X set to the provided value.
Public methodWithXPlus Returns a new instance with X set to the X plus the provided value.
Public methodWithY Returns a new instance with Y set to the provided value.
Public methodWithYPlus Returns a new instance with Y set to the Y plus the provided value.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(PointD2D, PointD2D) Adds two points component-wise.
Public operatorStatic memberAddition(PointD2D, VectorD2D) Adds a vector to a point component-wise.
Public operatorStatic memberDivision(PointD2D, Double) Divides a point by a scalar.
Public operatorStatic memberEquality(PointD2D, PointD2D) Checks if two points are equal.
Public operatorStatic member(VectorD2D to PointD2D) Converts a VectorD2D to a PointD2D.
Public operatorStatic memberInequality(PointD2D, PointD2D) Checks if two points are not equal.
Public operatorStatic memberMultiply(Double, PointD2D) Multiplies a scalar by a point.
Public operatorStatic memberMultiply(PointD2D, PointD2D) Multiplies two points component-wise.
Public operatorStatic memberMultiply(PointD2D, Double) Multiplies a point by a scalar.
Public operatorStatic memberSubtraction(PointD2D, PointD2D) Subtracts two points component-wise.
Public operatorStatic memberSubtraction(PointD2D, VectorD2D) Subtracts a vector from a point component-wise.
Top
Extension Methods
See Also