DoublePoint Structure 
Namespace: Accord
The DoublePoint type exposes the following members.
Name  Description  

DoublePoint 
Initializes a new instance of the DoublePoint structure.

Name  Description  

Add(DoublePoint, DoublePoint) 
Addition operator  adds values of two points.
 
Add(DoublePoint, Double) 
Addition operator  adds scalar to the specified point.
 
DistanceTo 
Calculate Euclidean distance between two points.
 
Divide 
Division operator  divides coordinates of the specified point by scalar value.
 
Equals 
Check if this instance of DoublePoint equal to the specified one.
(Overrides ValueTypeEquals(Object).)  
EuclideanNorm 
Calculate Euclidean norm of the vector comprised of the point's
coordinates  distance from (0, 0) in other words.
 
GetHashCode 
Get hash code for this instance.
(Overrides ValueTypeGetHashCode.)  
GetType  Gets the Type of the current instance. (Inherited from Object.)  
Multiply 
Multiplication operator  multiplies coordinates of the specified point by scalar value.
 
Round 
Rounds the double precision point.
 
SquaredDistanceTo 
Calculate squared Euclidean distance between two points.
 
Subtract(DoublePoint, DoublePoint) 
Subtraction operator  subtracts values of two points.
 
Subtract(DoublePoint, Double) 
Subtraction operator  subtracts scalar from the specified point.
 
ToString 
Get string representation of the class.
(Overrides ValueTypeToString.) 
Name  Description  

Addition(DoublePoint, DoublePoint) 
Addition operator  adds values of two points.
 
Addition(DoublePoint, Double) 
Addition operator  adds scalar to the specified point.
 
Division 
Division operator  divides coordinates of the specified point by scalar value.
 
Equality 
Equality operator  checks if two points have equal coordinates.
 
(DoublePoint to IntPoint) 
Explicit conversion to IntPoint.
 
(DoublePoint to Point) 
Explicit conversion to Point.
 
Inequality 
Inequality operator  checks if two points have different coordinates.
 
Multiply 
Multiplication operator  multiplies coordinates of the specified point by scalar value.
 
Subtraction(DoublePoint, DoublePoint) 
Subtraction operator  subtracts values of two points.
 
Subtraction(DoublePoint, Double) 
Subtraction operator  subtracts scalar from the specified point.

Name  Description  

HasMethod 
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)  
IsEqual 
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.)  
To(Type)  Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)  
ToT  Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) 
The structure is used to store a pair of floating point coordinates with double precision.
Sample usage:
// assigning coordinates in the constructor DoublePoint p1 = new DoublePoint( 10, 20 ); // creating a point and assigning coordinates later DoublePoint p2; p2.X = 30; p2.Y = 40; // calculating distance between two points double distance = p1.DistanceTo( p2 );