Class SbVec4ub

    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] array  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(SbVec4ub u)
      Component-wise vector addition operator.
      void clamp​(byte a, byte b)
      Clamp each component between a and b.
      void divide​(double d)
      Component-wise scalar division operator.
      void divide​(int d)
      Component-wise scalar division operator.
      int dot​(SbVec4ub v)
      Returns dot (inner) product of vector and another vector.
      boolean equals​(java.lang.Object obj)  
      byte[] getValue()  
      byte getValueAt​(int index)  
      byte getW()  
      byte getX()  
      byte getY()  
      byte getZ()  
      SbVec4ub minus​(SbVec4ub v2)
      Component-wise binary vector subtraction operator.
      void multiply​(double d)
      Component-wise scalar multiplication operator.
      void multiply​(int d)
      Component-wise scalar multiplication operator.
      void negate()
      Negates each component of vector in place.
      SbVec4ub over​(double d)
      Component-wise binary scalar division operator.
      SbVec4ub over​(int d)
      Component-wise binary scalar division operator.
      SbVec4ub plus​(SbVec4ub v2)
      Component-wise binary vector addition operator.
      SbVec4ub setValue​(byte[] components)  
      SbVec4ub setValue​(byte[] components, int startIndex)  
      SbVec4ub setValue​(byte c0, byte c1, byte c2, byte c3)  
      void setValue​(SbVec4ub copyFrom)  
      void setValueAt​(int index, byte value)  
      void setW​(byte value)  
      void setX​(byte value)  
      void setY​(byte value)  
      void setZ​(byte value)  
      void substract​(SbVec4ub u)
      Component-wise vector subtraction operator.
      SbVec4ub times​(double d)
      Component-wise binary scalar multiplication operator.
      SbVec4ub times​(int d)
      Component-wise binary scalar multiplication operator.
      static SbVec4ub[] toArray​(long nativeArray, long length)  
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • array

        public final byte[] array
    • Constructor Detail

      • SbVec4ub

        public SbVec4ub​(byte c0,
                        byte c1,
                        byte c2,
                        byte c3)
      • SbVec4ub

        public SbVec4ub()
      • SbVec4ub

        public SbVec4ub​(SbVec4ub copyFrom)
      • SbVec4ub

        public SbVec4ub​(byte[] components)
    • Method Detail

      • getValue

        public byte[] getValue()
      • setValue

        public void setValue​(SbVec4ub copyFrom)
      • setValue

        public SbVec4ub setValue​(byte[] components,
                                 int startIndex)
      • setValueAt

        public void setValueAt​(int index,
                               byte value)
      • setValue

        public SbVec4ub setValue​(byte[] components)
      • getValueAt

        public byte getValueAt​(int index)
      • setValue

        public SbVec4ub setValue​(byte c0,
                                 byte c1,
                                 byte c2,
                                 byte c3)
      • setZ

        public void setZ​(byte value)
      • getW

        public byte getW()
      • setW

        public void setW​(byte value)
      • getZ

        public byte getZ()
      • getY

        public byte getY()
      • getX

        public byte getX()
      • setX

        public void setX​(byte value)
      • setY

        public void setY​(byte value)
      • dot

        public int dot​(SbVec4ub v)
        Returns dot (inner) product of vector and another vector.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toArray

        public static SbVec4ub[] toArray​(long nativeArray,
                                         long length)
      • clamp

        public void clamp​(byte a,
                          byte b)
        Clamp each component between a and b.
      • minus

        public SbVec4ub minus​(SbVec4ub v2)
        Component-wise binary vector subtraction operator.
      • multiply

        public void multiply​(double d)
        Component-wise scalar multiplication operator.
      • times

        public SbVec4ub times​(int d)
        Component-wise binary scalar multiplication operator.
      • times

        public SbVec4ub times​(double d)
        Component-wise binary scalar multiplication operator.
      • substract

        public void substract​(SbVec4ub u)
        Component-wise vector subtraction operator.
      • divide

        public void divide​(double d)
        Component-wise scalar division operator.
      • add

        public void add​(SbVec4ub u)
        Component-wise vector addition operator.
      • divide

        public void divide​(int d)
        Component-wise scalar division operator.
      • multiply

        public void multiply​(int d)
        Component-wise scalar multiplication operator.
      • plus

        public SbVec4ub plus​(SbVec4ub v2)
        Component-wise binary vector addition operator.
      • negate

        public void negate()
        Negates each component of vector in place.
      • over

        public SbVec4ub over​(double d)
        Component-wise binary scalar division operator.
      • over

        public SbVec4ub over​(int d)
        Component-wise binary scalar division operator.