MCPcopy Create free account
hub / github.com/chrxh/alien / tangentialVelocity

Method tangentialVelocity

source/Base/Physics.cpp:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "Math.h"
4
5RealVector2D Physics::tangentialVelocity(RealVector2D const& positionFromCenter, RealVector2D const& vel, double angularVel)
6{
7 return vel - Math::rotateQuarterCounterClockwise(positionFromCenter) * toFloat(angularVel * Const::DegToRad);
8}

Callers

nothing calls this directly

Calls 1

toFloatFunction · 0.85

Tested by

no test coverage detected