// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:12 ///
/// class PathConstraintPathHermite final : public PathConstraintPath ///
///
/// /// /// A path that follows a Hermite spline /// /// [InteropHandle] public readonly partial struct PathConstraintPathHermite : IDisposable { /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:32 ///
/// struct Point ///
///
[StructLayout(LayoutKind.Explicit, Size = 48)] public struct Point { /// /// /// Position on the path /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:36 ///
/// Vec3 mPosition ///
///
[FieldOffset(0)] public float3 mPosition; /// /// /// Tangent of the path, does not need to be normalized (in the direction of the path) /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:37 ///
/// Vec3 mTangent ///
///
[FieldOffset(16)] public float3 mTangent; /// /// /// Normal of the path (together with the tangent along the curve this forms a basis for the constraint) /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:38 ///
/// Vec3 mNormal ///
///
[FieldOffset(32)] public float3 mNormal; } public static PathConstraintPathHermite Create() => Jolt.PInvoke.PathConstraintPathHermite_Create(); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:14 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// public RTTI GetRTTI() => Jolt.PInvoke.PathConstraintPathHermite_GetRTTI(this); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:14 ///
/// ///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.PathConstraintPathHermite_CastTo(this, rTTI); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:18 ///
/// virtual float GetPathMaxFraction() const override ///
///
/// /// /// See PathConstraintPath::GetPathMaxFraction /// /// public float GetPathMaxFraction() => Jolt.PInvoke.PathConstraintPathHermite_GetPathMaxFraction(this); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:21 ///
/// virtual float GetClosestPoint(Vec3Arg inPosition, float inFractionHint) const override ///
///
/// /// /// See PathConstraintPath::GetClosestPoint /// /// public float GetClosestPoint(float3 position, float fractionHint) => Jolt.PInvoke.PathConstraintPathHermite_GetClosestPoint(this, position, fractionHint); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:24 ///
/// virtual void GetPointOnPath(float inFraction, Vec3 &outPathPosition, Vec3 &outPathTangent, Vec3 &outPathNormal, Vec3 &outPathBinormal) const override ///
///
/// /// /// See PathConstraintPath::GetPointOnPath /// /// public void GetPointOnPath(float fraction, out float3 pathPosition, out float3 pathTangent, out float3 pathNormal, out float3 pathBinormal) => Jolt.PInvoke.PathConstraintPathHermite_GetPointOnPath(this, fraction, out pathPosition, out pathTangent, out pathNormal, out pathBinormal); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:27 ///
/// void AddPoint(Vec3Arg inPosition, Vec3Arg inTangent, Vec3Arg inNormal) ///
///
/// /// /// Adds a point to the path /// /// public void AddPoint(float3 position, float3 tangent, float3 normal) => Jolt.PInvoke.PathConstraintPathHermite_AddPoint(this, position, tangent, normal); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraintPathHermite.h:30 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See: PathConstraintPath::SaveBinaryState /// /// public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.PathConstraintPathHermite_SaveBinaryState(this, stream); public void AddRef() => Jolt.PInvoke.PathConstraintPathHermite_AddRef(this); public void Release() => Jolt.PInvoke.PathConstraintPathHermite_Release(this); public uint GetRefCount() => Jolt.PInvoke.PathConstraintPathHermite_GetRefCount(this); public static implicit operator PathConstraintPath(PathConstraintPathHermite value) => Jolt.PInvoke.PathConstraintPathHermite_AsPathConstraintPath(value); public void Dispose() { if (IsNull()) return; Release(); } } }