Class Simd4F

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class Simd4F extends ProxyInstance
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocate a new Simd4F.
    Simd4F(float x, float y, float z, float w)
    Allocate a new Simd4F with the fields set to the provided values.
    Simd4F(float x, float y, float z, float w, Arena arena)
    Allocate a new Simd4F with the fields set to the provided values.
    Simd4F(Arena arena)
    Allocate a new Simd4F.
    Create a Simd4F proxy instance for the provided memory address.
  • Method Summary

    Modifier and Type
    Method
    Description
    The memory layout of the native struct.
    float
    Read the value of the field w.
    float
    Read the value of the field x.
    float
    Read the value of the field y.
    float
    Read the value of the field z.
    void
    writeW(float w)
    Write a value in the field w.
    void
    writeX(float x)
    Write a value in the field x.
    void
    writeY(float y)
    Write a value in the field y.
    void
    writeZ(float z)
    Write a value in the field z.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Simd4F

      public Simd4F(MemorySegment address)
      Create a Simd4F proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • Simd4F

      public Simd4F(Arena arena)
      Allocate a new Simd4F.
      Parameters:
      arena - to control the memory allocation scope
    • Simd4F

      public Simd4F()
      Allocate a new Simd4F. The memory is allocated with Arena.ofAuto().
    • Simd4F

      public Simd4F(float x, float y, float z, float w, Arena arena)
      Allocate a new Simd4F with the fields set to the provided values.
      Parameters:
      x - value for the field x
      y - value for the field y
      z - value for the field z
      w - value for the field w
      arena - to control the memory allocation scope
    • Simd4F

      public Simd4F(float x, float y, float z, float w)
      Allocate a new Simd4F with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      x - value for the field x
      y - value for the field y
      z - value for the field z
      w - value for the field w
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readX

      public float readX()
      Read the value of the field x.
      Returns:
      The value of the field x
    • writeX

      public void writeX(float x)
      Write a value in the field x.
      Parameters:
      x - The new value for the field x
    • readY

      public float readY()
      Read the value of the field y.
      Returns:
      The value of the field y
    • writeY

      public void writeY(float y)
      Write a value in the field y.
      Parameters:
      y - The new value for the field y
    • readZ

      public float readZ()
      Read the value of the field z.
      Returns:
      The value of the field z
    • writeZ

      public void writeZ(float z)
      Write a value in the field z.
      Parameters:
      z - The new value for the field z
    • readW

      public float readW()
      Read the value of the field w.
      Returns:
      The value of the field w
    • writeW

      public void writeW(float w)
      Write a value in the field w.
      Parameters:
      w - The new value for the field w