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
double
representing the horizontal position of thePoint
object. Defaults to0
. -
double y = 0;
A
double
representing the vertical position of thePoint
object. Defaults to0
.
Creating a Point Object¶
-
Point()
Constructs a
Point
object withx
andy
initialized to0
. -
Point(double x, double y)
Constructs a
Point
object with the givenx
andy
coordinates.