Class SbVec4s

    • Field Summary

      Fields 
      Modifier and Type Field Description
      short[] array  
    • Constructor Summary

      Constructors 
      Constructor Description
      SbVec4s()  
      SbVec4s​(short[] components)  
      SbVec4s​(short c0, short c1, short c2, short c3)  
      SbVec4s​(SbVec4s copyFrom)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(SbVec4s u)
      Component-wise vector addition operator.
      void divide​(double d)
      Component-wise scalar division operator.
      void divide​(int d)
      Component-wise scalar division operator.
      int dot​(SbVec4s v)
      Returns dot (inner) product of vector and another vector.
      boolean equals​(java.lang.Object obj)  
      short[] getValue()  
      short getValueAt​(int index)  
      short getW()  
      short getX()  
      short getY()  
      short getZ()  
      SbVec4s minus​(SbVec4s 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.
      SbVec4s over​(double d)
      Component-wise binary scalar division operator.
      SbVec4s over​(int d)
      Component-wise binary scalar division operator.
      SbVec4s plus​(SbVec4s v2)
      Component-wise binary vector addition operator.
      SbVec4s setValue​(short[] components)  
      SbVec4s setValue​(short[] components, int startIndex)  
      SbVec4s setValue​(short c0, short c1, short c2, short c3)  
      void setValue​(SbVec4s copyFrom)  
      void setValueAt​(int index, short value)  
      void setW​(short value)  
      void setX​(short value)  
      void setY​(short value)  
      void setZ​(short value)  
      void substract​(SbVec4s u)
      Component-wise vector subtraction operator.
      SbVec4s times​(double d)
      Component-wise binary scalar multiplication operator.
      SbVec4s times​(int d)
      Component-wise binary scalar multiplication operator.
      static SbVec4s[] 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 short[] array
    • Constructor Detail

      • SbVec4s

        public SbVec4s()
      • SbVec4s

        public SbVec4s​(short c0,
                       short c1,
                       short c2,
                       short c3)
      • SbVec4s

        public SbVec4s​(SbVec4s copyFrom)
      • SbVec4s

        public SbVec4s​(short[] components)
    • Method Detail

      • setX

        public void setX​(short value)
      • setValue

        public SbVec4s setValue​(short c0,
                                short c1,
                                short c2,
                                short c3)
      • setZ

        public void setZ​(short value)
      • setY

        public void setY​(short value)
      • setValue

        public SbVec4s setValue​(short[] components,
                                int startIndex)
      • setValue

        public void setValue​(SbVec4s copyFrom)
      • getValue

        public short[] getValue()
      • setValueAt

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

        public SbVec4s setValue​(short[] components)
      • getValueAt

        public short getValueAt​(int index)
      • getW

        public short getW()
      • getZ

        public short getZ()
      • setW

        public void setW​(short value)
      • getX

        public short getX()
      • getY

        public short getY()
      • over

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

        public SbVec4s plus​(SbVec4s v2)
        Component-wise binary vector addition operator.
      • equals

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

        public static SbVec4s[] toArray​(long nativeArray,
                                        long length)
      • minus

        public SbVec4s minus​(SbVec4s v2)
        Component-wise binary vector subtraction operator.
      • negate

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

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

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

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

        public SbVec4s over​(int d)
        Component-wise binary scalar division operator.
      • times

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

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

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

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

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

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