Package com.j3d.engine.math
Class ScreenPoint
ScreenPoint, not to be confused with
CartesianPoint, is a point on the actual screen (window) open.
Where (0, 0) is the top left corner of the window.
All 2d points should be calculated in CartesianPoint, but when you want to show it on the screen, converted to a ScreenPoint
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScreenPointfromMacroPoint(String macroPoint) toPoint()Converts this ScreenPoint back into it's CartesianPoint using the global Conversion properties defined byConversion.global()toPoint(Conversion conversion) Converts the Screen Point into aCartesianPoint.toPoint(ConversionWithOffset conversion) Converts the Screen Point into aCartesianPoint.toString()Returns the ScreenPoint asPointMethods inherited from class com.j3d.engine.math.BasePoint
areCollinear
-
Constructor Details
-
ScreenPoint
public ScreenPoint(int X, int Y) Default Constructor- Parameters:
X- The X-ValueY- The Y-Value
-
-
Method Details
-
toPoint
Converts this ScreenPoint back into it's CartesianPoint using the global Conversion properties defined byConversion.global()- Returns:
- A CartesianPoint
-
toPoint
Converts the Screen Point into aCartesianPoint.- Parameters:
conversion- The conversion properties- Returns:
- The
CartesianPointcoordinates of this ScreenPoint.
-
toPoint
Converts the Screen Point into aCartesianPoint.- Parameters:
conversion- The conversion properties- Returns:
- The
CartesianPointcoordinates of this ScreenPoint.
-
toSwingPoint
Returns the ScreenPoint asPoint- Returns:
- A Point
-
toMacroPoint
-
fromMacroPoint
-
toString
-