Project

General

Profile

« Previous | Next » 

Revision ece89b28

Added by Leszek Koltunski about 4 years ago

Adjustment to Static's API.

View differences:

src/main/java/org/distorted/library/type/Static4D.java
83 83
 *
84 84
 * @param ox new value of the first float.
85 85
 */
86
  public void set1(float ox)
86
  public void set0(float ox)
87 87
    {
88 88
    x = ox;
89 89
    }
......
94 94
 *
95 95
 * @param oy new value of the second float.
96 96
 */
97
  public void set2(float oy)
97
  public void set1(float oy)
98 98
    {
99 99
    y = oy;
100 100
    }
......
105 105
 *
106 106
 * @param oz new value of the third float.
107 107
 */
108
  public void set3(float oz)
108
  public void set2(float oz)
109 109
    {
110 110
    z = oz;
111 111
    }
......
116 116
 *
117 117
 * @param ow new value of the fourth float.
118 118
 */
119
  public void set4(float ow)
119
  public void set3(float ow)
120 120
    {
121 121
    w = ow;
122 122
    }
......
127 127
 *
128 128
 * @return The first float.
129 129
 */
130
  public float get1()
130
  public float get0()
131 131
    {
132 132
    return x;
133 133
    }
......
138 138
 *
139 139
 * @return The second float.
140 140
 */
141
  public float get2()
141
  public float get1()
142 142
    {
143 143
    return y;
144 144
    }
......
149 149
 *
150 150
 * @return The third float.
151 151
 */
152
  public float get3()
152
  public float get2()
153 153
    {
154 154
    return z;
155 155
    }
......
160 160
 *
161 161
 * @return The fourth float.
162 162
 */
163
  public float get4()
163
  public float get3()
164 164
    {
165 165
    return w;
166 166
    }

Also available in: Unified diff