Class RMPoint3D

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class RMPoint3D
    extends java.lang.Object
    implements java.lang.Cloneable
    This class represents a 3D point.
    • Field Summary

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

      Constructors 
      Constructor Description
      RMPoint3D​(float x, float y, float z)
      Creates a new point3d from the x, y, z coords.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      implements Cloneable interface
      boolean equals​(java.lang.Object anObj)
      Standard equals implementation.
      java.lang.String toString()
      Returns a string representation of the point.
      RMPoint3D transform​(RMTransform3D xform)
      Transforms the point by the given transform3d.
      • Methods inherited from class java.lang.Object

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

      • x

        public float x
      • y

        public float y
      • z

        public float z
    • Constructor Detail

      • RMPoint3D

        public RMPoint3D​(float x,
                         float y,
                         float z)
        Creates a new point3d from the x, y, z coords.
    • Method Detail

      • transform

        public RMPoint3D transform​(RMTransform3D xform)
        Transforms the point by the given transform3d.
      • equals

        public boolean equals​(java.lang.Object anObj)
        Standard equals implementation.
        Overrides:
        equals in class java.lang.Object
      • clone

        public java.lang.Object clone()
        implements Cloneable interface
        Overrides:
        clone in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns a string representation of the point.
        Overrides:
        toString in class java.lang.Object