Cairo-Chart/src/Point.vala

53 lines
687 B
Vala
Raw Normal View History

2018-01-08 23:33:13 +03:00
namespace CairoChart {
/**
* 64-bit point.
*/
2017-08-28 14:47:31 +03:00
public struct Point {
2018-01-08 23:33:13 +03:00
/**
* X-coordinate.
*/
double x;
/**
* Y-coordinate.
*/
double y;
/**
* Constructs a new ``Point``.
* @param x x-coordinate.
* @param y y-coordinate.
*/
public Point (double x = 0, double y = 0) {
this.x = x; this.y = y;
}
}
/**
* 128-bit point.
*/
public struct Point128 {
/**
* X-coordinate.
*/
2017-08-28 14:47:31 +03:00
Float128 x;
2018-01-08 23:33:13 +03:00
/**
* Y-coordinate.
*/
2017-08-28 14:47:31 +03:00
Float128 y;
2018-01-08 23:33:13 +03:00
/**
* Constructs a new ``Point128``.
* @param x x-coordinate.
* @param y y-coordinate.
*/
public Point128 (Float128 x = 0, Float128 y = 0) {
2017-08-28 14:47:31 +03:00
this.x = x; this.y = y;
}
}
}