// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// Helper structure holding the reciprocal of a ray for Ray vs AABox testing /// /// /// C++: /// Jolt/Geometry/RayAABox.h:10 ///
/// class RayInvDirection ///
///
[InteropHandle] public readonly partial struct RayInvDirection : IDisposable { /// /// /// Constructors /// /// /// C++: /// Jolt/Geometry/RayAABox.h:14 ///
/// inline RayInvDirection() = default ///
///
public static RayInvDirection Create() => Jolt.PInvoke.RayInvDirection_Create(); /// /// /// C++: /// Jolt/Geometry/RayAABox.h:15 ///
/// inline explicit RayInvDirection(Vec3Arg inDirection) ///
///
public static RayInvDirection Create(float3 direction) => Jolt.PInvoke.RayInvDirection_Create_2(direction); /// /// /// Set reciprocal from ray direction /// /// /// C++: /// Jolt/Geometry/RayAABox.h:18 ///
/// inline void Set(Vec3Arg inDirection) ///
///
public void Set(float3 direction) => Jolt.PInvoke.RayInvDirection_Set(this, direction); /// /// /// 1 / ray direction /// /// /// C++: /// Jolt/Geometry/RayAABox.h:27 ///
/// Vec3 mInvDirection ///
///
public float3 GetInvDirection() => Jolt.PInvoke.RayInvDirection_GetInvDirection(this); /// /// /// 1 / ray direction /// /// /// C++: /// Jolt/Geometry/RayAABox.h:27 ///
/// Vec3 mInvDirection ///
///
public void SetInvDirection(float3 value) => Jolt.PInvoke.RayInvDirection_SetInvDirection(this, value); /// /// /// for each component if it is parallel to the coordinate axis /// /// /// C++: /// Jolt/Geometry/RayAABox.h:28 ///
/// UVec4 mIsParallel ///
///
public uint4 GetIsParallel() => Jolt.PInvoke.RayInvDirection_GetIsParallel(this); /// /// /// for each component if it is parallel to the coordinate axis /// /// /// C++: /// Jolt/Geometry/RayAABox.h:28 ///
/// UVec4 mIsParallel ///
///
public void SetIsParallel(uint4 value) => Jolt.PInvoke.RayInvDirection_SetIsParallel(this, value); public void Dispose() => Jolt.PInvoke.RayInvDirection_Destroy(this); } }