Class vec2s


  • public class vec2s
    extends CFacade
    Generated facet for DNA struct type 'vec2s'.

    Class Documentation

    Blender Source Code

    types vector of two shorts.

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct vec2s.

        It is required when allocating a new block to store data for vec2s.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__x

        public static final long[] __DNA__FIELD__x
        Field descriptor (offset) for struct member 'x'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         vec2s vec2s = ...;
         CPointer<Object> p = vec2s.__dna__addressof(vec2s.__DNA__FIELD__x);
         CPointer<Short> p_x = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'x'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__y

        public static final long[] __DNA__FIELD__y
        Field descriptor (offset) for struct member 'y'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         vec2s vec2s = ...;
         CPointer<Object> p = vec2s.__dna__addressof(vec2s.__DNA__FIELD__y);
         CPointer<Short> p_y = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'y'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
    • Constructor Detail

      • vec2s

        public vec2s​(long __address,
                     Block __block,
                     BlockTable __blockTable)
      • vec2s

        protected vec2s​(vec2s that)
    • Method Detail

      • getX

        public short getX()
                   throws java.io.IOException
        Get method for struct member 'x'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • setX

        public void setX​(short x)
                  throws java.io.IOException
        Set method for struct member 'x'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • getY

        public short getY()
                   throws java.io.IOException
        Get method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • setY

        public void setY​(short y)
                  throws java.io.IOException
        Set method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • __io__addressof

        public CPointer<vec2s> __io__addressof()
        Instantiates a pointer on this instance.