From 776ff5e01ba6bcdb3fb7118ba0808f6093dc1eca Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 19 Jan 2018 18:12:06 +0300 Subject: [PATCH] OK In progress... --- src/Point.vala | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/Point.vala b/src/Point.vala index 07cc591..31ed534 100644 --- a/src/Point.vala +++ b/src/Point.vala @@ -1,16 +1,48 @@ 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; }