ObjFW  Diff

Differences From Artifact [a8920f92ed]:

To Artifact [0701029750]:


96
97
98
99
100
101
102
103

104
105
106












107
108
109
110
111
112
113
96
97
98
99
100
101
102

103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125







-
+



+
+
+
+
+
+
+
+
+
+
+
+







- (size_t)dimension;

/**
 * \brief Returns an array of floats with the contents of the vector.
 *
 * Modifying the returned array directly is allowed and will change the vector.
 *
 * \brief An array of floats with the contents of the vector
 * \return An array of floats with the contents of the vector
 */
- (float*)cArray;

/**
 * \brief Returns the magnitude or length of the vector.
 *
 * \return The magnitude or length of the vector
 */
- (float)magnitude;

/**
 * \brief Normalizes the vector.
 */
- (void)normalize;

/**
 * \brief Adds the specified vector to the receiver.
 *
 * \param vector The vector to add
 */
- (void)addVector: (OFFloatVector*)vector;

152
153
154
155
156
157
158
159

160
161

162
163
164

165
166

167
168

169
170
171
172
173
174
175
176
177
164
165
166
167
168
169
170

171
172

173



174


175
176

177
178
179
180
181
182
183
184
185
186







-
+

-
+
-
-
-
+
-
-
+

-
+









 * \brief Returns the dot product of the receiver and the specified vector.
 *
 * \return The dot product of the receiver and the specified vector
 */
- (float)dotProductWithVector: (OFFloatVector*)vector;

/**
 * \brief Returns the magnitude or length of the vector.
 * \brief Returns the cross product of the receiver and the specified vector.
 *
 * \return The magnitude or length of the vector
 * This currently only works for 3D vectors.
 */
- (float)magnitude;

 *
/**
 * \brief Normalizes the vector.
 * \return The cross product of the receiver and the specified vector
 */
- (void)normalize;
- (OFFloatVector*)crossProductWithVector: (OFFloatVector*)vector;

/**
 * \brief Multiplies the receiver with the specified matrix on the left side and
 *	  the receiver on the right side.
 *
 * \param matrix The matrix to multiply the receiver with
 */
- (void)multiplyWithMatrix: (OFFloatMatrix*)matrix;
@end