MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / easeInOutCubic

Function easeInOutCubic

graph-ui/src/agents/agent-motion.ts:149–154  ·  view source on GitHub ↗
(t: number)

Source from the content-addressed store, hash-verified

147
148/** Weich anfangen, weich aufhoeren. */
149export function easeInOutCubic(t: number): number {
150 const clamped = t <= 0 ? 0 : t >= 1 ? 1 : t;
151 return clamped < 0.5
152 ? 4 * clamped * clamped * clamped
153 : 1 - Math.pow(-2 * clamped + 2, 3) / 2;
154}
155
156/**
157 * Auf welche Seite dieser Akteur ausweicht.

Callers 2

AgentBodyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected