MCPcopy Create free account
hub / github.com/demoth/jake2 / anglemod

Method anglemod

qcommon/src/main/java/jake2/qcommon/util/Math3D.java:466–468  ·  view source on GitHub ↗
(float a)

Source from the content-addressed store, hash-verified

464 return (in * (float) Math.PI) / 180.0f;
465 }
466 public static float anglemod(float a) {
467 return (float) (shortratio) * ((int) (a / (shortratio)) & 65535);
468 }
469 public static int ANGLE2SHORT(float x) {
470 return ((int) ((x) / shortratio) & 65535);
471 }

Callers 4

SV_NewChaseDirMethod · 0.95
FacingIdealMethod · 0.95
rotateToIdealYawMethod · 0.95
AddPacketEntitiesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected