/*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc.spatialdatatypes;
Represents the internal makings of a Point.
/**
* Represents the internal makings of a Point.
*
*/
public class Point {
private final double x;
private final double y;
private final double z;
private final double m;
public Point(double x, double y, double z, double m) {
this.x = x;
this.y = y;
this.z = z;
this.m = m;
}
Returns the x coordinate value.
Returns: double x coordinate value.
/**
* Returns the x coordinate value.
*
* @return double x coordinate value.
*/
public double getX() {
return x;
}
Returns the y coordinate value.
Returns: double y coordinate value.
/**
* Returns the y coordinate value.
*
* @return double y coordinate value.
*/
public double getY() {
return y;
}
Returns the z (elevation) value.
Returns: double z value.
/**
* Returns the z (elevation) value.
*
* @return double z value.
*/
public double getZ() {
return z;
}
Returns the m (measure) value.
Returns: double m value.
/**
* Returns the m (measure) value.
*
* @return double m value.
*/
public double getM() {
return m;
}
}