JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.nativewindow.util.Point Class Reference
Inheritance diagram for com.jogamp.nativewindow.util.Point:
Collaboration diagram for com.jogamp.nativewindow.util.Point:

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 ()
 

Detailed Description

Definition at line 32 of file Point.java.

Constructor & Destructor Documentation

◆ Point() [1/2]

com.jogamp.nativewindow.util.Point.Point ( final int  x,
final int  y 
)

Definition at line 36 of file Point.java.

◆ Point() [2/2]

com.jogamp.nativewindow.util.Point.Point ( )

Definition at line 41 of file Point.java.

Here is the caller graph for this function:

Member Function Documentation

◆ clone()

Object com.jogamp.nativewindow.util.Point.clone ( )

Definition at line 51 of file Point.java.

Here is the caller graph for this function:

◆ cloneMutable()

Object com.jogamp.nativewindow.util.Point.cloneMutable ( )

Definition at line 46 of file Point.java.

Here is the call graph for this function:

◆ compareTo()

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.

Here is the call graph for this function:

◆ equals()

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.

Returns
true if the two points are equal; otherwise false.

Implements com.jogamp.nativewindow.util.PointImmutable.

Definition at line 73 of file Point.java.

Here is the call graph for this function:

◆ getX()

final int com.jogamp.nativewindow.util.Point.getX ( )

Implements com.jogamp.nativewindow.util.PointImmutable.

Definition at line 83 of file Point.java.

Here is the caller graph for this function:

◆ getY()

final int com.jogamp.nativewindow.util.Point.getY ( )

Implements com.jogamp.nativewindow.util.PointImmutable.

Definition at line 88 of file Point.java.

Here is the caller graph for this function:

◆ hashCode()

int com.jogamp.nativewindow.util.Point.hashCode ( )

Implements com.jogamp.nativewindow.util.PointImmutable.

Definition at line 93 of file Point.java.

◆ scale() [1/2]

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.

Parameters
sxscale factor for x
syscale factor for y
Returns
this instance for scaling

Definition at line 185 of file Point.java.

◆ scale() [2/2]

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.

Parameters
sxscale factor for x
syscale factor for y
Returns
this instance for scaling

Definition at line 169 of file Point.java.

◆ scaleInv() [1/2]

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.

Parameters
sxinverse scale factor for x
syinverse scale factor for y
Returns
this instance for scaling

Definition at line 213 of file Point.java.

◆ scaleInv() [2/2]

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.

Parameters
sxinverse scale factor for x
syinverse scale factor for y
Returns
this instance for scaling

Definition at line 198 of file Point.java.

◆ set()

final Point com.jogamp.nativewindow.util.Point.set ( final int  x,
final int  y 
)

Set this instance's x- and y-component.

Parameters
xvalue for x-component
yvalue for y-component
Returns
this instance for scaling

Definition at line 111 of file Point.java.

◆ setX()

final Point com.jogamp.nativewindow.util.Point.setX ( final int  x)

Set this instance's x–component.

Parameters
xvalue for x-component
Returns
this instance for scaling

Definition at line 117 of file Point.java.

◆ setY()

final Point com.jogamp.nativewindow.util.Point.setY ( final int  y)

Set this instance's y-component.

Parameters
yvalue for y-component
Returns
this instance for scaling

Definition at line 123 of file Point.java.

◆ toString()

String com.jogamp.nativewindow.util.Point.toString ( )

Definition at line 101 of file Point.java.

◆ translate() [1/3]

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.

Parameters
dxdelta for x
dydelta for y
Returns
this instance for scaling

Definition at line 156 of file Point.java.

◆ translate() [2/3]

final Point com.jogamp.nativewindow.util.Point.translate ( final Point  pd)

Translate this instance's x- and y-components, i.e.

add the values of the given delta point to them.

Parameters
pddelta point
Returns
this instance for scaling

Definition at line 131 of file Point.java.

Here is the caller graph for this function:

◆ translate() [3/3]

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.

Parameters
pddelta point
Returns
this instance for scaling

Definition at line 143 of file Point.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: