Cairo-Chart/src/Point.vala

51 lines
565 B
Vala

namespace CairoChart {
/**
* 64-bit point.
*/
public struct Point {
/**
* 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.0, double y = 0.0) {
this.x = x; this.y = y;
}
}
/**
*
*/
public struct Point128 {
/**
*
*/
Float128 x;
/**
*
*/
Float128 y;
/**
*
*/
public Point128 (Float128 x = 0.0, Float128 y = 0.0) {
this.x = x; this.y = y;
}
}
}