Class Point
Represents a zero-dimensional object that represents a specific (X,Y) location in a two-dimensional XY-Plane.
In case of Geographic Coordinate Systems, the X coordinate is the longitude and the Y is the latitude.
Assembly: Cassandra.dll
Syntax
[Serializable]
[JsonConverter(typeof(PointJsonConverter))]
public class Point : GeometryBase, ISerializable, IComparable<Point>
Constructors
Point(double, double)
Creates a new instance of Point.
Declaration
public Point(double x, double y)
Parameters
Type |
Name |
Description |
double |
x |
The X coordinate.
|
double |
y |
The Y coordinate.
|
Point(SerializationInfo, StreamingContext)
Creates a new instance of Point.
Declaration
protected Point(SerializationInfo info, StreamingContext context)
Parameters
Properties
GeoCoordinates
Gets the coordinates property for GeoJSON serialization.
Declaration
protected override IEnumerable GeoCoordinates { get; }
Property Value
Overrides
X
Returns the X coordinate of this 2D point.
Declaration
Property Value
Y
Returns the Y coordinate of this 2D point.
Declaration
Property Value
Methods
CompareTo(Point)
Declaration
public int CompareTo(Point other)
Parameters
Type |
Name |
Description |
Point |
other |
|
Returns
Equals(object)
Returns a value indicating whether this instance and a specified object represent the same value.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Parse(string)
Declaration
public static Point Parse(string textValue)
Parameters
Type |
Name |
Description |
string |
textValue |
|
Returns
ToString()
Returns Well-known text (WKT) representation of the geometry object.
Declaration
public override string ToString()
Returns
Overrides
Implements