Point¶
Represents a two-dimensional point comprised of x and y floating point numbers with double precision.
Declaration¶
namespace bdn {
struct Point
}
Public Member Variables¶
-
double x = 0;
A
doublerepresenting the horizontal position of thePointobject. Defaults to0. -
double y = 0;
A
doublerepresenting the vertical position of thePointobject. Defaults to0.
Creating a Point Object¶
-
Point()
Constructs a
Pointobject withxandyinitialized to0. -
Point(double x, double y)
Constructs a
Pointobject with the givenxandycoordinates.