HPL3/Amnesia: Rebirth/Scripting/Scripting Api/Math

From Frictional Wiki
< HPL3‎ | Amnesia: Rebirth‎ | Scripting‎ | Scripting Api
Revision as of 00:06, 16 November 2020 by Abion47 (talk | contribs) (Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Summary== {{CodeDocSummaryTop}} {{CodeDocSummaryIte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Summary

Return Type Function and Description
void Math_CatmullRom(cVector3f &out avResult, const cVector3f &in avP0, const cVector3f &in avP1, const cVector3f &in avP2, const cVector3f &in avP3, float afFract)
A function that gives you a point along a spline made up of four points

Function Detail

Math_CatmullRom

void Math_CatmullRom(cVector3f &out avResult,
                     const cVector3f &in avP0,
                     const cVector3f &in avP1,
                     const cVector3f &in avP2,
                     const cVector3f &in avP3,
                     float afFract)

A function that gives you a point along a spline made up of four points. The spline is guaranteed to hit the second and third points.

Parameters

Returns:

  • void