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.
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Cassandra.Geometry
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 |
double | y | The |
Point(SerializationInfo, StreamingContext)
Creates a new instance of Point.
Declaration
protected Point(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
Properties
GeoCoordinates
Gets the coordinates property for GeoJSON serialization.
Declaration
protected override IEnumerable GeoCoordinates { get; }
Property Value
Type | Description |
---|---|
IEnumerable |
Overrides
X
Returns the X coordinate of this 2D point.
Declaration
public double X { get; }
Property Value
Type | Description |
---|---|
double |
Y
Returns the Y coordinate of this 2D point.
Declaration
public double Y { get; }
Property Value
Type | Description |
---|---|
double |
Methods
CompareTo(Point)
Declaration
public int CompareTo(Point other)
Parameters
Type | Name | Description |
---|---|---|
Point | other |
Returns
Type | Description |
---|---|
int |
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
Type | Description |
---|---|
bool |
Overrides
object.Equals(object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
object.GetHashCode()
Parse(string)
Creates a Point instance from a Well-known Text(WKT) representation of a 2D point.
Declaration
public static Point Parse(string textValue)
Parameters
Type | Name | Description |
---|---|---|
string | textValue |
Returns
Type | Description |
---|---|
Point |
ToString()
Returns Well-known text (WKT) representation of the geometry object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
object.ToString()
Implements
System.Runtime.Serialization.ISerializable
System.IComparable<T>