JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.math.geom.plane.Path2F Class Reference

Path2F represents and provides construction method for a 2D shape using float[2] points. More...

Collaboration diagram for com.jogamp.math.geom.plane.Path2F:

Classes

class  Iterator
 
enum  SegmentType
 A Path2D segment type. More...
 

Public Member Functions

 Path2F ()
 
 Path2F (final WindingRule rule)
 
 Path2F (final WindingRule rule, final int initialCapacity)
 
 Path2F (final WindingRule rule, final int initialTypeCapacity, final int initialPointCapacity)
 
 Path2F (final Path2F path)
 
void setWindingRule (final WindingRule rule)
 Set the WindingRule set. More...
 
WindingRule getWindingRule ()
 Return the WindingRule set. More...
 
void moveTo (final float x, final float y)
 Start a new position for the next line segment at given point x/y (P1). More...
 
void lineTo (final float x, final float y)
 Add a line segment, intersecting the last point and the given point x/y (P1). More...
 
void quadTo (final float x1, final float y1, final float x2, final float y2)
 Add a quadratic curve segment, intersecting the last point and the second given point x2/y2 (P2). More...
 
void cubicTo (final float x1, final float y1, final float x2, final float y2, final float x3, final float y3)
 Add a cubic Bézier curve segment, intersecting the last point and the second given point x3/y3 (P3). More...
 
void closePath ()
 Closes the current sub-path segment by drawing a straight line back to the coordinates of the last moveTo. More...
 
final int size ()
 
final boolean isClosed ()
 Returns true if the last sub-path is closed, otherwise false. More...
 
Winding getWinding ()
 Compute the general winding of the vertices. More...
 
String toString ()
 
void append (final Path2F path, final boolean connect)
 Append the given path geometry to this instance. More...
 
void append (final Iterator path, boolean connect)
 Append the given path geometry to this instance. More...
 
void printSegments (final PrintStream out)
 
void reset ()
 
void transform (final AffineTransform t)
 
Path2F createTransformedShape (final AffineTransform t)
 
final synchronized AABBox getBounds2D ()
 
boolean contains (final float px, final float py)
 
boolean contains (final float rx, final float ry, final float rw, final float rh)
 
boolean intersects (final float rx, final float ry, final float rw, final float rh)
 
boolean contains (final AABBox r)
 
boolean intersects (final AABBox r)
 
Iterator iterator ()
 
Iterator iterator (final AffineTransform t)
 

Detailed Description

Path2F represents and provides construction method for a 2D shape using float[2] points.

Definition at line 31 of file Path2F.java.

Constructor & Destructor Documentation

◆ Path2F() [1/5]

com.jogamp.math.geom.plane.Path2F.Path2F ( )

Definition at line 267 of file Path2F.java.

Here is the caller graph for this function:

◆ Path2F() [2/5]

com.jogamp.math.geom.plane.Path2F.Path2F ( final WindingRule  rule)

Definition at line 271 of file Path2F.java.

◆ Path2F() [3/5]

com.jogamp.math.geom.plane.Path2F.Path2F ( final WindingRule  rule,
final int  initialCapacity 
)

Definition at line 275 of file Path2F.java.

◆ Path2F() [4/5]

com.jogamp.math.geom.plane.Path2F.Path2F ( final WindingRule  rule,
final int  initialTypeCapacity,
final int  initialPointCapacity 
)

Definition at line 279 of file Path2F.java.

Here is the call graph for this function:

◆ Path2F() [5/5]

com.jogamp.math.geom.plane.Path2F.Path2F ( final Path2F  path)

Definition at line 285 of file Path2F.java.

Here is the call graph for this function:

Member Function Documentation

◆ append() [1/2]

void com.jogamp.math.geom.plane.Path2F.append ( final Iterator  path,
boolean  connect 
)

Append the given path geometry to this instance.

Parameters
paththe Path2F.Iterator to append to this instance
connectpass true to turn an initial moveTo segment into a lineTo segment to connect the new geometry to the existing path, otherwise pass false.

Definition at line 436 of file Path2F.java.

Here is the call graph for this function:

◆ append() [2/2]

void com.jogamp.math.geom.plane.Path2F.append ( final Path2F  path,
final boolean  connect 
)

Append the given path geometry to this instance.

Parameters
paththe Path2F to append to this instance
connectpass true to turn an initial moveTo segment into a lineTo segment to connect the new geometry to the existing path, otherwise pass false.

Definition at line 427 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closePath()

void com.jogamp.math.geom.plane.Path2F.closePath ( )

Closes the current sub-path segment by drawing a straight line back to the coordinates of the last moveTo.

If the path is already closed then this method has no effect.

Definition at line 390 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains() [1/3]

boolean com.jogamp.math.geom.plane.Path2F.contains ( final AABBox  r)

Definition at line 571 of file Path2F.java.

Here is the call graph for this function:

◆ contains() [2/3]

boolean com.jogamp.math.geom.plane.Path2F.contains ( final float  px,
final float  py 
)

Definition at line 557 of file Path2F.java.

Here is the caller graph for this function:

◆ contains() [3/3]

boolean com.jogamp.math.geom.plane.Path2F.contains ( final float  rx,
final float  ry,
final float  rw,
final float  rh 
)

Definition at line 561 of file Path2F.java.

◆ createTransformedShape()

Path2F com.jogamp.math.geom.plane.Path2F.createTransformedShape ( final AffineTransform  t)

Definition at line 509 of file Path2F.java.

Here is the call graph for this function:

◆ cubicTo()

void com.jogamp.math.geom.plane.Path2F.cubicTo ( final float  x1,
final float  y1,
final float  x2,
final float  y2,
final float  x3,
final float  y3 
)

Add a cubic Bézier curve segment, intersecting the last point and the second given point x3/y3 (P3).

Parameters
x1Bézier control point (P1)
y1Bézier control point (P1)
x2Bézier control point (P2)
y2Bézier control point (P2)
x3final interpolated control point (P3)
y3final interpolated control point (P3)

Definition at line 376 of file Path2F.java.

Here is the caller graph for this function:

◆ getBounds2D()

final synchronized AABBox com.jogamp.math.geom.plane.Path2F.getBounds2D ( )

Definition at line 517 of file Path2F.java.

◆ getWinding()

Winding com.jogamp.math.geom.plane.Path2F.getWinding ( )

Compute the general winding of the vertices.

Parameters
verticesarray of Vertices
Returns
CCW or CW Winding

Definition at line 413 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWindingRule()

WindingRule com.jogamp.math.geom.plane.Path2F.getWindingRule ( )

Return the WindingRule set.

Definition at line 298 of file Path2F.java.

Here is the caller graph for this function:

◆ intersects() [1/2]

boolean com.jogamp.math.geom.plane.Path2F.intersects ( final AABBox  r)

Definition at line 575 of file Path2F.java.

Here is the call graph for this function:

◆ intersects() [2/2]

boolean com.jogamp.math.geom.plane.Path2F.intersects ( final float  rx,
final float  ry,
final float  rw,
final float  rh 
)

Definition at line 566 of file Path2F.java.

Here is the caller graph for this function:

◆ isClosed()

final boolean com.jogamp.math.geom.plane.Path2F.isClosed ( )

Returns true if the last sub-path is closed, otherwise false.

Definition at line 404 of file Path2F.java.

Here is the caller graph for this function:

◆ iterator() [1/2]

Iterator com.jogamp.math.geom.plane.Path2F.iterator ( )

Definition at line 579 of file Path2F.java.

Here is the caller graph for this function:

◆ iterator() [2/2]

Iterator com.jogamp.math.geom.plane.Path2F.iterator ( final AffineTransform  t)

Definition at line 583 of file Path2F.java.

◆ lineTo()

void com.jogamp.math.geom.plane.Path2F.lineTo ( final float  x,
final float  y 
)

Add a line segment, intersecting the last point and the given point x/y (P1).

Parameters
xfinal point (P1)
yfinal point (P1)

Definition at line 344 of file Path2F.java.

Here is the caller graph for this function:

◆ moveTo()

void com.jogamp.math.geom.plane.Path2F.moveTo ( final float  x,
final float  y 
)

Start a new position for the next line segment at given point x/y (P1).

Parameters
xpoint (P1)
ypoint (P1)

Definition at line 327 of file Path2F.java.

Here is the caller graph for this function:

◆ printSegments()

void com.jogamp.math.geom.plane.Path2F.printSegments ( final PrintStream  out)

Definition at line 472 of file Path2F.java.

Here is the call graph for this function:

◆ quadTo()

void com.jogamp.math.geom.plane.Path2F.quadTo ( final float  x1,
final float  y1,
final float  x2,
final float  y2 
)

Add a quadratic curve segment, intersecting the last point and the second given point x2/y2 (P2).

Parameters
x1quadratic parametric control point (P1)
y1quadratic parametric control point (P1)
x2final interpolated control point (P2)
y2final interpolated control point (P2)

Definition at line 358 of file Path2F.java.

Here is the caller graph for this function:

◆ reset()

void com.jogamp.math.geom.plane.Path2F.reset ( )

Definition at line 500 of file Path2F.java.

◆ setWindingRule()

void com.jogamp.math.geom.plane.Path2F.setWindingRule ( final WindingRule  rule)

Set the WindingRule set.

Definition at line 293 of file Path2F.java.

Here is the caller graph for this function:

◆ size()

final int com.jogamp.math.geom.plane.Path2F.size ( )

Definition at line 397 of file Path2F.java.

Here is the caller graph for this function:

◆ toString()

String com.jogamp.math.geom.plane.Path2F.toString ( )

Definition at line 418 of file Path2F.java.

Here is the call graph for this function:

◆ transform()

void com.jogamp.math.geom.plane.Path2F.transform ( final AffineTransform  t)

Definition at line 505 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

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