Class EulerAngle

  • All Implemented Interfaces:
    android.os.Parcelable

    public class EulerAngle
    extends java.lang.Object
    implements android.os.Parcelable
    Euler angle
    Since:
    1.0.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.ContentsFlags, android.os.Parcelable.Creator<T>, android.os.Parcelable.Stability, android.os.Parcelable.WriteFlags
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<EulerAngle> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_STABILITY_LOCAL, PARCELABLE_STABILITY_VINTF, PARCELABLE_WRITE_RETURN_VALUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()
      Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
      boolean equals​(java.lang.Object o)  
      float getPitch()  
      float getRoll()  
      double getScreenAngle()  
      float getYaw()  
      int hashCode()  
      void setPitch​(float pitch)  
      void setRoll​(float roll)  
      void setYaw​(float yaw)  
      void writeToParcel​(android.os.Parcel dest, int flags)
      Flatten this object in to a Parcel.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface android.os.Parcelable

        getStability
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<EulerAngle> CREATOR
    • Constructor Detail

      • EulerAngle

        public EulerAngle()
      • EulerAngle

        public EulerAngle​(float yaw,
                          float pitch,
                          float roll)
      • EulerAngle

        public EulerAngle​(EulerAngle original)
      • EulerAngle

        protected EulerAngle​(android.os.Parcel in)
    • Method Detail

      • getYaw

        public float getYaw()
        Returns:
        Yaw
        Since:
        1.0.0
      • getPitch

        public float getPitch()
        Returns:
        Pitch
        Since:
        1.0.0
      • getRoll

        public float getRoll()
        Returns:
        Roll
        Since:
        1.0.0
      • setYaw

        public void setYaw​(float yaw)
      • setPitch

        public void setPitch​(float pitch)
      • setRoll

        public void setRoll​(float roll)
      • getScreenAngle

        public double getScreenAngle()
      • describeContents

        public int describeContents()
        Description copied from interface: android.os.Parcelable
        Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of Parcelable.writeToParcel(Parcel, int), the return value of this method must include the Parcelable.CONTENTS_FILE_DESCRIPTOR bit.
        Specified by:
        describeContents in interface android.os.Parcelable
        Returns:
        a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Description copied from interface: android.os.Parcelable
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Parameters:
        dest - The Parcel in which the object should be written.
        flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object