Isle
|
Opaque Bezier curve utility used for actor or path position interpolation. More...
#include <legounknown.h>
Public Member Functions | |
LegoUnknown () | |
[AI] Constructs the LegoUnknown object, clearing the internal control points. More... | |
~LegoUnknown () | |
[AI] Destructor (no-op). More... | |
void | FUN_1009a140 (const Vector3 &p_point1, const Vector3 &p_point2, const Vector3 &p_point3, const Vector3 &p_point4) |
[AI] Configure internal curve control points. More... | |
LegoResult | FUN_1009a1e0 (float p_f1, Matrix4 &p_mat, Vector3 &p_v, LegoU32 p_und) |
[AI] Evaluates the curve and its tangent at p_f1 and computes the local orthonormal frame. More... | |
Opaque Bezier curve utility used for actor or path position interpolation.
[AI]
[AI] This class appears to be a helper for handling cubic Bezier curves or Hermite splines in 3D, storing up to four control points. Its methods are used to set up the curve with the required endpoints/tangents and to evaluate positions and directions along the curve. Used for path or animation interpolation. [AI]
Definition at line 18 of file legounknown.h.
LegoUnknown::LegoUnknown | ( | ) |
[AI] Constructs the LegoUnknown object, clearing the internal control points.
Definition at line 8 of file legounknown.cpp.
LegoUnknown::~LegoUnknown | ( | ) |
[AI] Destructor (no-op).
Definition at line 16 of file legounknown.cpp.
void LegoUnknown::FUN_1009a140 | ( | const Vector3 & | p_point1, |
const Vector3 & | p_point2, | ||
const Vector3 & | p_point3, | ||
const Vector3 & | p_point4 | ||
) |
[AI] Configure internal curve control points.
[AI]
[AI] Assigns the control points for a cubic spline or Bezier curve, given four 3D points:
p_point1
: The curve start pointp_point2
: Outgoing tangent or first control handlep_point3
: Curve end pointp_point4
: Incoming tangent or last control handle The method builds the internal polynomial coefficients required for evaluation. [AI] p_point1 | Start point of the curve [AI] |
p_point2 | Outgoing tangent or handle at the start [AI] |
p_point3 | End point of the curve [AI] |
p_point4 | Incoming tangent or handle at the end [AI] |
Definition at line 22 of file legounknown.cpp.
LegoResult LegoUnknown::FUN_1009a1e0 | ( | float | p_f1, |
Matrix4 & | p_mat, | ||
Vector3 & | p_v, | ||
LegoU32 | p_und | ||
) |
[AI] Evaluates the curve and its tangent at p_f1
and computes the local orthonormal frame.
[AI]
[AI] Given a parameter p_f1
between 0 and 1, this method calculates:
p_und
is set,p_v
,Matrix4
as basis vectors. Returns FAILURE if vectors cannot be normalized. p_f1 | Parameter along the curve, in [0,1]. [AI] |
p_mat | Matrix output: built up with the resulting position (column 3) and basis vectors. [AI] |
p_v | Reference up-direction vector to use for frame computation. [AI] |
p_und | If true, reverses the curve tangent. [AI] |
Definition at line 40 of file legounknown.cpp.