|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| Point (final int x, final int y) | |
| Point () | |
| Object | cloneMutable () |
| Object | clone () |
| int | compareTo (final PointImmutable d) |
| boolean | equals (final Object obj) |
| Checks whether two points objects are equal. More... | |
| final int | getX () |
| final int | getY () |
| int | hashCode () |
| String | toString () |
| final Point | set (final int x, final int y) |
| Set this instance's x- and y-component. More... | |
| final Point | setX (final int x) |
| Set this instance's x–component. More... | |
| final Point | setY (final int y) |
| Set this instance's y-component. More... | |
| final Point | translate (final Point pd) |
| Translate this instance's x- and y-components, i.e. More... | |
| final Point | translate (final PointImmutable pd) |
| Translate this instance's x- and y-components, i.e. More... | |
| final Point | translate (final int dx, final int dy) |
| Translate this instance's x- and y-components, i.e. More... | |
| final Point | scale (final int sx, final int sy) |
| Scale this instance's x- and y-components, i.e. More... | |
| final Point | scale (final float sx, final float sy) |
| Scale this instance's x- and y-components, i.e. More... | |
| final Point | scaleInv (final int sx, final int sy) |
| Inverse scale this instance's x- and y-components, i.e. More... | |
| final Point | scaleInv (final float sx, final float sy) |
| Inverse scale this instance's x- and y-components, i.e. More... | |
| int | getX () |
| int | getY () |
| int | compareTo (final PointImmutable d) |
| boolean | equals (Object obj) |
| Checks whether two points objects are equal. More... | |
| int | hashCode () |
Definition at line 32 of file Point.java.
| com.jogamp.nativewindow.util.Point.Point | ( | final int | x, |
| final int | y | ||
| ) |
Definition at line 36 of file Point.java.
| com.jogamp.nativewindow.util.Point.Point | ( | ) |
| Object com.jogamp.nativewindow.util.Point.clone | ( | ) |
| Object com.jogamp.nativewindow.util.Point.cloneMutable | ( | ) |
| int com.jogamp.nativewindow.util.Point.compareTo | ( | final PointImmutable | d | ) |
Compares the square of the position.
Compares the square of the position.
Implements com.jogamp.nativewindow.util.PointImmutable.
Definition at line 60 of file Point.java.
| boolean com.jogamp.nativewindow.util.Point.equals | ( | final Object | obj | ) |
Checks whether two points objects are equal.
Two instances of PointReadOnly are equal if the two components y and x are equal.
true if the two points are equal; otherwise false. Implements com.jogamp.nativewindow.util.PointImmutable.
Definition at line 73 of file Point.java.
| final int com.jogamp.nativewindow.util.Point.getX | ( | ) |
Implements com.jogamp.nativewindow.util.PointImmutable.
Definition at line 83 of file Point.java.
| final int com.jogamp.nativewindow.util.Point.getY | ( | ) |
Implements com.jogamp.nativewindow.util.PointImmutable.
Definition at line 88 of file Point.java.
| int com.jogamp.nativewindow.util.Point.hashCode | ( | ) |
Implements com.jogamp.nativewindow.util.PointImmutable.
Definition at line 93 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.scale | ( | final float | sx, |
| final float | sy | ||
| ) |
Scale this instance's x- and y-components, i.e.
multiply them by the given scale factors.
The product is rounded back to integer.
| sx | scale factor for x |
| sy | scale factor for y |
Definition at line 185 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.scale | ( | final int | sx, |
| final int | sy | ||
| ) |
Scale this instance's x- and y-components, i.e.
multiply them by the given scale factors.
| sx | scale factor for x |
| sy | scale factor for y |
Definition at line 169 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.scaleInv | ( | final float | sx, |
| final float | sy | ||
| ) |
Inverse scale this instance's x- and y-components, i.e.
divide them by the given scale factors.
The product is rounded back to integer.
| sx | inverse scale factor for x |
| sy | inverse scale factor for y |
Definition at line 213 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.scaleInv | ( | final int | sx, |
| final int | sy | ||
| ) |
Inverse scale this instance's x- and y-components, i.e.
divide them by the given scale factors.
| sx | inverse scale factor for x |
| sy | inverse scale factor for y |
Definition at line 198 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.set | ( | final int | x, |
| final int | y | ||
| ) |
Set this instance's x- and y-component.
| x | value for x-component |
| y | value for y-component |
Definition at line 111 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.setX | ( | final int | x | ) |
Set this instance's x–component.
| x | value for x-component |
Definition at line 117 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.setY | ( | final int | y | ) |
Set this instance's y-component.
| y | value for y-component |
Definition at line 123 of file Point.java.
| String com.jogamp.nativewindow.util.Point.toString | ( | ) |
Definition at line 101 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.translate | ( | final int | dx, |
| final int | dy | ||
| ) |
Translate this instance's x- and y-components, i.e.
add the given deltas to them.
| dx | delta for x |
| dy | delta for y |
Definition at line 156 of file Point.java.
Translate this instance's x- and y-components, i.e.
add the values of the given delta point to them.
| pd | delta point |
Definition at line 131 of file Point.java.
| final Point com.jogamp.nativewindow.util.Point.translate | ( | final PointImmutable | pd | ) |
Translate this instance's x- and y-components, i.e.
add the values of the given delta point to them.
| pd | delta point |
Definition at line 143 of file Point.java.