public class ParSLAnnotation
extends org.lwjgl.system.Struct
u_along_curve – longitudinal coordinate (see parsl_u_mode)v_across_curve – either + or - depending on the sidespine_to_edge_x – normalized vector from spine to edgespine_to_edge_y – normalized vector from spine to edge
struct parsl_annotation {
float u_along_curve;
float v_across_curve;
float spine_to_edge_x;
float spine_to_edge_y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ParSLAnnotation.Buffer
An array of
ParSLAnnotation structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPINE_TO_EDGE_X
The struct member offsets.
|
static int |
SPINE_TO_EDGE_Y
The struct member offsets.
|
static int |
U_ALONG_CURVE
The struct member offsets.
|
static int |
V_ACROSS_CURVE
The struct member offsets.
|
| Constructor and Description |
|---|
ParSLAnnotation(java.nio.ByteBuffer container)
Creates a
ParSLAnnotation instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ParSLAnnotation |
create(long address)
Returns a new
ParSLAnnotation instance for the specified memory address. |
static ParSLAnnotation.Buffer |
create(long address,
int capacity)
Create a
ParSLAnnotation.Buffer instance at the specified memory. |
static ParSLAnnotation |
createSafe(long address)
|
static ParSLAnnotation.Buffer |
createSafe(long address,
int capacity)
|
static float |
nspine_to_edge_x(long struct)
Unsafe version of
spine_to_edge_x(). |
static float |
nspine_to_edge_y(long struct)
Unsafe version of
spine_to_edge_y(). |
static float |
nu_along_curve(long struct)
Unsafe version of
u_along_curve(). |
static float |
nv_across_curve(long struct)
Unsafe version of
v_across_curve(). |
int |
sizeof() |
float |
spine_to_edge_x()
Returns the value of the
spine_to_edge_x field. |
float |
spine_to_edge_y()
Returns the value of the
spine_to_edge_y field. |
float |
u_along_curve()
Returns the value of the
u_along_curve field. |
float |
v_across_curve()
Returns the value of the
v_across_curve field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int U_ALONG_CURVE
public static final int V_ACROSS_CURVE
public static final int SPINE_TO_EDGE_X
public static final int SPINE_TO_EDGE_Y
public ParSLAnnotation(java.nio.ByteBuffer container)
ParSLAnnotation instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float u_along_curve()
u_along_curve field.public float v_across_curve()
v_across_curve field.public float spine_to_edge_x()
spine_to_edge_x field.public float spine_to_edge_y()
spine_to_edge_y field.public static ParSLAnnotation create(long address)
ParSLAnnotation instance for the specified memory address.@Nullable public static ParSLAnnotation createSafe(long address)
public static ParSLAnnotation.Buffer create(long address, int capacity)
ParSLAnnotation.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ParSLAnnotation.Buffer createSafe(long address, int capacity)
public static float nu_along_curve(long struct)
u_along_curve().public static float nv_across_curve(long struct)
v_across_curve().public static float nspine_to_edge_x(long struct)
spine_to_edge_x().public static float nspine_to_edge_y(long struct)
spine_to_edge_y().Copyright LWJGL. All Rights Reserved. License terms.