OK In progress...

This commit is contained in:
Kolan Sh 2018-01-19 18:12:06 +03:00
parent ad04ed2e2a
commit 776ff5e01b
1 changed files with 32 additions and 0 deletions

View File

@ -1,16 +1,48 @@
namespace CairoChart { namespace CairoChart {
/**
* 64-bit point.
*/
public struct Point { public struct Point {
/**
* X-coordinate.
*/
double x; double x;
/**
* Y-coordinate.
*/
double y; double y;
/**
* Constructs a new ``Point``.
* @param x x-coordinate.
* @param y y-coordinate.
*/
public Point (double x = 0.0, double y = 0.0) { public Point (double x = 0.0, double y = 0.0) {
this.x = x; this.y = y; this.x = x; this.y = y;
} }
} }
/**
*
*/
public struct Point128 { public struct Point128 {
/**
*
*/
Float128 x; Float128 x;
/**
*
*/
Float128 y; Float128 y;
/**
*
*/
public Point128 (Float128 x = 0.0, Float128 y = 0.0) { public Point128 (Float128 x = 0.0, Float128 y = 0.0) {
this.x = x; this.y = y; this.x = x; this.y = y;
} }