MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / operator *

Method operator *

jni/venus/vec3.h:84–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 friend vec3<T> operator +(const vec3<T>& lhs, const vec3<T>& rhs) { vec3<T> result(lhs); result += rhs; return result; }
83 friend vec3<T> operator -(const vec3<T>& lhs, const vec3<T>& rhs) { vec3<T> result(lhs); result -= rhs; return result; }
84 friend vec3<T> operator *(const vec3<T>& lhs, const vec3<T>& rhs) { return vec3<T>(lhs.x*rhs.x, lhs.y*rhs.y, lhs.z*rhs.z); }
85 friend vec3<T> operator *(const vec3<T>& lhs, T value) { return vec3<T>(lhs.x*value, lhs.y*value, lhs.z*value); }
86 friend vec3<T> operator *(T value, const vec3<T>& rhs) { return vec3<T>(rhs.x*value, rhs.y*value, rhs.z*value); }
87 friend vec3<T> operator /(const vec3<T>& lhs, T value) { return vec3<T>(lhs.x/value, lhs.y/value, lhs.z/value); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected