geoengine_api_client/models/coordinate2_d.rs
1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct Coordinate2D {
15 #[serde(rename = "x")]
16 pub x: f64,
17 #[serde(rename = "y")]
18 pub y: f64,
19}
20
21impl Coordinate2D {
22 pub fn new(x: f64, y: f64) -> Coordinate2D {
23 Coordinate2D {
24 x,
25 y,
26 }
27 }
28}
29