OE2DPoint
class OE2DPoint
This class represents OE2DPoint that stores an x (horizontal), y (vertical) coordinate pair.
The coordinate system used in OEDepict TK has the origin (x=0.0, y=0.0) at the top/left with the x-axis pointing to the right and the y-axis pointing down. See Figure: 2D coordinate system.
2D coordinate system (X = horizontal, Y = vertical)
Constructors
OE2DPoint() -> OE2DPoint
Default constructor that initializes an OE2DPoint object with x = 0.0, y = 0.0 coordinates.
OE2DPoint(x: float, y: float) -> OE2DPoint
Constructor that initializes an OE2DPoint object with the give x, y coordinates.
OE2DPoint(arg2: OE2DPoint) -> OE2DPoint
Copy constructor.
GetX
GetX() -> float
Returns the x (horizontal) coordinate of the OE2DPoint object.
See also
OE2DPoint.SetYmethod
GetY
GetY() -> float
Returns the y (vertical) coordinate of the OE2DPoint object.
See also
OE2DPoint.SetYmethod
SetX
SetX(x: float) -> None
Sets the x (horizontal) coordinate of the OE2DPoint object.
See also
OE2DPoint.GetXmethod
SetY
SetY(y: float) -> None
Sets the y (vertical) coordinate of the OE2DPoint object.
See also
OE2DPoint.GetYmethod