MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / project

Method project

jni/venus/vec2.h:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 vec2<T> project(vec2<T>& direction, bool normalized = false) const
123 {
124 if(!normalized)
125 direction.normalize();
126 return dot(*this, direction) * direction;
127 }
128
129 vec2<T>& translate(const vec2<T>& vector)
130 {

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected