Struct Point

A simple struct to store the coordinates of a point as doubles or integers.

Constructors

Name Description
this

Fields

Name Type Description
x T
y T

Example

auto p = Point!double(10, 10);  //Type Point!double
auto p2 = point(10.0, 10.0);    //Type Point!double
auto p3 = Point!int(10, 10);    //Type Point!int
auto p4 = point(10, 10);        //Type Point!int
assert(p == p2);
assert(p3 == p4);

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1