Lines Matching refs:m_value

244 		static WrappedType<Type>	create			(Type value)							{ WrappedType<Type> v; v.m_value = value; return v; }
245 static WrappedType<Type> fromFloat (float value) { WrappedType<Type> v; v.m_value = (Type)value; return v; }
246 inline Type getValue (void) const { return m_value; }
248 inline WrappedType<Type> operator+ (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value + other.getValue())); }
249 inline WrappedType<Type> operator* (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value * other.getValue())); }
250 inline WrappedType<Type> operator/ (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value / other.getValue())); }
251 inline WrappedType<Type> operator% (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value % other.getValue())); }
252 inline WrappedType<Type> operator- (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value - other.getValue())); }
254 inline WrappedType<Type>& operator+= (const WrappedType<Type>& other) { m_value += other.getValue(); return *this; }
255 inline WrappedType<Type>& operator*= (const WrappedType<Type>& other) { m_value *= other.getValue(); return *this; }
256 inline WrappedType<Type>& operator/= (const WrappedType<Type>& other) { m_value /= other.getValue(); return *this; }
257 inline WrappedType<Type>& operator-= (const WrappedType<Type>& other) { m_value -= other.getValue(); return *this; }
259 inline bool operator== (const WrappedType<Type>& other) const { return m_value == other.m_value; }
260 inline bool operator!= (const WrappedType<Type>& other) const { return m_value != other.m_value; }
261 inline bool operator< (const WrappedType<Type>& other) const { return m_value < other.m_value; }
262 inline bool operator> (const WrappedType<Type>& other) const { return m_value > other.m_value; }
263 inline bool operator<= (const WrappedType<Type>& other) const { return m_value <= other.m_value; }
264 inline bool operator>= (const WrappedType<Type>& other) const { return m_value >= other.m_value; }
266 inline operator Type (void) const { return m_value; }
268 inline T to (void) const { return (T)m_value; }
270 Type m_value;
277 static WrappedFloatType<Type> create (Type value) { WrappedFloatType<Type> v; v.m_value = value; return v; }
278 static WrappedFloatType<Type> fromFloat (float value) { WrappedFloatType<Type> v; v.m_value = (Type)value; return v; }
279 inline Type getValue (void) const { return m_value; }
281 inline WrappedFloatType<Type> operator+ (const WrappedFloatType<Type>& other) const { return WrappedFloatType<Type>::create((Type)(m_value + other.getValue())); }
282 inline WrappedFloatType<Type> operator* (const WrappedFloatType<Type>& other) const { return WrappedFloatType<Type>::create((Type)(m_value * other.getValue())); }
283 inline WrappedFloatType<Type> operator/ (const WrappedFloatType<Type>& other) const { return WrappedFloatType<Type>::create((Type)(m_value / other.getValue())); }
284 inline WrappedFloatType<Type> operator% (const WrappedFloatType<Type>& other) const { return WrappedFloatType<Type>::create((Type)(deMod(m_value, other.getValue()))); }
285 inline WrappedFloatType<Type> operator- (const WrappedFloatType<Type>& other) const { return WrappedFloatType<Type>::create((Type)(m_value - other.getValue())); }
287 inline WrappedFloatType<Type>& operator+= (const WrappedFloatType<Type>& other) { m_value += other.getValue(); return *this; }
288 inline WrappedFloatType<Type>& operator*= (const WrappedFloatType<Type>& other) { m_value *= other.getValue(); return *this; }
289 inline WrappedFloatType<Type>& operator/= (const WrappedFloatType<Type>& other) { m_value /= other.getValue(); return *this; }
290 inline WrappedFloatType<Type>& operator-= (const WrappedFloatType<Type>& other) { m_value -= other.getValue(); return *this; }
292 inline bool operator== (const WrappedFloatType<Type>& other) const { return m_value == other.m_value; }
293 inline bool operator!= (const WrappedFloatType<Type>& other) const { return m_value != other.m_value; }
294 inline bool operator< (const WrappedFloatType<Type>& other) const { return m_value < other.m_value; }
295 inline bool operator> (const WrappedFloatType<Type>& other) const { return m_value > other.m_value; }
296 inline bool operator<= (const WrappedFloatType<Type>& other) const { return m_value <= other.m_value; }
297 inline bool operator>= (const WrappedFloatType<Type>& other) const { return m_value >= other.m_value; }
299 inline operator Type (void) const { return m_value; }
301 inline T to (void) const { return (T)m_value; }
303 Type m_value;
321 static Half create (float value) { Half h; h.m_value = floatToHalf(value); return h; }
322 static Half fromFloat (float value) { Half h; h.m_value = floatToHalf(value); return h; }
323 inline deFloat16 getValue (void) const { return m_value; }
325 inline Half operator+ (const Half& other) const { return create(halfToFloat(m_value) + halfToFloat(other.getValue())); }
326 inline Half operator* (const Half& other) const { return create(halfToFloat(m_value) * halfToFloat(other.getValue())); }
327 inline Half operator/ (const Half& other) const { return create(halfToFloat(m_value) / halfToFloat(other.getValue())); }
328 inline Half operator% (const Half& other) const { return create(deFloatMod(halfToFloat(m_value), halfToFloat(other.getValue()))); }
329 inline Half operator- (const Half& other) const { return create(halfToFloat(m_value) - halfToFloat(other.getValue())); }
331 inline Half& operator+= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) + halfToFloat(m_value)); return *this; }
332 inline Half& operator*= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) * halfToFloat(m_value)); return *this; }
333 inline Half& operator/= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) / halfToFloat(m_value)); return *this; }
334 inline Half& operator-= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) - halfToFloat(m_value)); return *this; }
336 inline bool operator== (const Half& other) const { return m_value == other.m_value; }
337 inline bool operator!= (const Half& other) const { return m_value != other.m_value; }
338 inline bool operator< (const Half& other) const { return halfToFloat(m_value) < halfToFloat(other.m_value); }
339 inline bool operator> (const Half& other) const { return halfToFloat(m_value) > halfToFloat(other.m_value); }
340 inline bool operator<= (const Half& other) const { return halfToFloat(m_value) <= halfToFloat(other.m_value); }
341 inline bool operator>= (const Half& other) const { return halfToFloat(m_value) >= halfToFloat(other.m_value); }
344 inline T to (void) const { return (T)halfToFloat(m_value); }
349 deFloat16 m_value;
355 static Fixed create (deInt32 value) { Fixed v; v.m_value = value; return v; }
356 static Fixed fromFloat (float value) { Fixed v; v.m_value = (deInt32)value; return v; }
357 inline deInt32 getValue (void) const { return m_value; }
359 inline Fixed operator+ (const Fixed& other) const { return create(m_value + other.getValue()); }
360 inline Fixed operator* (const Fixed& other) const { return create(m_value * other.getValue()); }
361 inline Fixed operator/ (const Fixed& other) const { return create(m_value / other.getValue()); }
362 inline Fixed operator% (const Fixed& other) const { return create(m_value % other.getValue()); }
363 inline Fixed operator- (const Fixed& other) const { return create(m_value - other.getValue()); }
365 inline Fixed& operator+= (const Fixed& other) { m_value += other.getValue(); return *this; }
366 inline Fixed& operator*= (const Fixed& other) { m_value *= other.getValue(); return *this; }
367 inline Fixed& operator/= (const Fixed& other) { m_value /= other.getValue(); return *this; }
368 inline Fixed& operator-= (const Fixed& other) { m_value -= other.getValue(); return *this; }
370 inline bool operator== (const Fixed& other) const { return m_value == other.m_value; }
371 inline bool operator!= (const Fixed& other) const { return m_value != other.m_value; }
372 inline bool operator< (const Fixed& other) const { return m_value < other.m_value; }
373 inline bool operator> (const Fixed& other) const { return m_value > other.m_value; }
374 inline bool operator<= (const Fixed& other) const { return m_value <= other.m_value; }
375 inline bool operator>= (const Fixed& other) const { return m_value >= other.m_value; }
377 inline operator deInt32 (void) const { return m_value; }
379 inline T to (void) const { return (T)m_value; }
381 deInt32 m_value;