com.microsoft.azure.cognitiveservices.vision.faceapi.models.Coordinate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-cognitiveservices-faceapi Show documentation
Show all versions of azure-cognitiveservices-faceapi Show documentation
This package contains Microsoft Cognitive Service Face API SDK.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.vision.faceapi.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Coordinates within an image.
*/
public class Coordinate {
/**
* The horizontal component, in pixels.
*/
@JsonProperty(value = "x", required = true)
private double x;
/**
* The vertical component, in pixels.
*/
@JsonProperty(value = "y", required = true)
private double y;
/**
* Get the x value.
*
* @return the x value
*/
public double x() {
return this.x;
}
/**
* Set the x value.
*
* @param x the x value to set
* @return the Coordinate object itself.
*/
public Coordinate withX(double x) {
this.x = x;
return this;
}
/**
* Get the y value.
*
* @return the y value
*/
public double y() {
return this.y;
}
/**
* Set the y value.
*
* @param y the y value to set
* @return the Coordinate object itself.
*/
public Coordinate withY(double y) {
this.y = y;
return this;
}
}