Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: 1.6.0
    • Component/s: vecmath
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      582

      Description

      Hi, I think it would be logical, useful and not much work to have the
      getElement(int) and setElement(int) in Tuple3f (and all other Tuples), with
      analogous functionality like in Matrix3f#getElement(int,int) and
      GVector#getElement(int).

      This is what I mean (for float Tuples):

      public final float getElement(int axis) {
      switch (axis)

      { case 0: return this.x; case 1: return this.y; case 2: return this.z; default: throw new ArrayIndexOutOfBoundsException(...); }

      }

      public final void setElement(int axis, float value) {
      switch (axis)

      { case 0: this.x = value; break; case 1: this.y = value; break; case 2: this.z = value; break; default: throw new ArrayIndexOutOfBoundsException(...); }

      }

        Activity

        Hide
        kcr added a comment -

        This is an API change and needs to wait until a 1.6 release before it can be
        considered.

        Show
        kcr added a comment - This is an API change and needs to wait until a 1.6 release before it can be considered.

          People

          • Assignee:
            java3d-issues
            Reporter:
            myrecek
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: