MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / operator*

Function operator*

include/reactphysics3d/mathematics/Vector2.h:296–298  ·  view source on GitHub ↗

Overloaded operator for multiplication with a number

Source from the content-addressed store, hash-verified

294
295// Overloaded operator for multiplication with a number
296RP3D_FORCE_INLINE Vector2 operator*(const Vector2& vector, decimal number) {
297 return Vector2(number * vector.x, number * vector.y);
298}
299
300// Overloaded operator for multiplication of two vectors
301RP3D_FORCE_INLINE Vector2 operator*(const Vector2& vector1, const Vector2& vector2) {

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected