Package teilchen.util

Class Vector4f

  • All Implemented Interfaces:
    java.io.Serializable

    public class Vector4f
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      float w  
      float x  
      float y  
      float z  
    • Constructor Summary

      Constructors 
      Constructor Description
      Vector4f()  
      Vector4f​(double[] pVector)  
      Vector4f​(double pX, double pY)  
      Vector4f​(double pX, double pY, double pZ)  
      Vector4f​(double pX, double pY, double pZ, double pW)  
      Vector4f​(float[] pVector)  
      Vector4f​(float pX, float pY)  
      Vector4f​(float pX, float pY, float pZ)  
      Vector4f​(float pX, float pY, float pZ, float pW)  
      Vector4f​(processing.core.PVector pVector)  
      Vector4f​(Vector4f pVector)  
    • Field Detail

      • w

        public float w
      • x

        public float x
      • y

        public float y
      • z

        public float z
    • Constructor Detail

      • Vector4f

        public Vector4f()
      • Vector4f

        public Vector4f​(float pX,
                        float pY,
                        float pZ,
                        float pW)
      • Vector4f

        public Vector4f​(double pX,
                        double pY,
                        double pZ,
                        double pW)
      • Vector4f

        public Vector4f​(float pX,
                        float pY,
                        float pZ)
      • Vector4f

        public Vector4f​(double pX,
                        double pY,
                        double pZ)
      • Vector4f

        public Vector4f​(float pX,
                        float pY)
      • Vector4f

        public Vector4f​(double pX,
                        double pY)
      • Vector4f

        public Vector4f​(float[] pVector)
      • Vector4f

        public Vector4f​(double[] pVector)
      • Vector4f

        public Vector4f​(Vector4f pVector)
      • Vector4f

        public Vector4f​(processing.core.PVector pVector)
    • Method Detail

      • set

        public final void set​(float pX,
                              float pY,
                              float pZ,
                              float pW)
      • set

        public final void set​(double pX,
                              double pY,
                              double pZ,
                              double pW)
      • set

        public final void set​(float pX,
                              float pY,
                              float pZ)
      • set

        public final void set​(double pX,
                              double pY,
                              double pZ)
      • set

        public final void set​(float pX,
                              float pY)
      • set

        public final void set​(double pX,
                              double pY)
      • set

        public final void set​(float[] pVector)
      • set

        public final void set​(double[] pVector)
      • set

        public final void set​(Vector4f pVector)
      • set

        public final void set​(processing.core.PVector pVector)
      • add

        public final void add​(Vector4f pVector)
      • sub

        public final void sub​(Vector4f pVector)
      • scale

        public final void scale​(float pScalar,
                                Vector4f pVector)
      • scale

        public final void scale​(float pScalar)
      • lengthSquared

        public final float lengthSquared()
      • length

        public final float length()
      • dot

        public final float dot​(Vector4f pVector)
      • normalize

        public void normalize​(Vector4f pVector)
      • normalize

        public final void normalize()
      • toArray

        public final float[] toArray()
      • isNaN

        public final boolean isNaN()
      • equals

        public final boolean equals​(Vector4f pVector)
      • almost

        public final boolean almost​(Vector4f pVector)
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object