// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { public static partial class Jolt { public static unsafe partial class PInvoke { /// [LibraryImport("jolt", EntryPoint = "Plane_Create")] public static partial Plane Plane_Create(); /// [LibraryImport("jolt", EntryPoint = "Plane_Create_2")] public static partial Plane Plane_Create_2(float4 normalAndConstant); /// [LibraryImport("jolt", EntryPoint = "Plane_Create_3")] public static partial Plane Plane_Create_3(float3 normal, float constant); /// [LibraryImport("jolt", EntryPoint = "Plane_FromPointAndNormal")] public static partial Plane Plane_FromPointAndNormal(float3 point, float3 normal); /// [LibraryImport("jolt", EntryPoint = "Plane_FromPointAndNormal_2")] public static partial Plane Plane_FromPointAndNormal_2(double3 point, float3 normal); /// [LibraryImport("jolt", EntryPoint = "Plane_FromPointsCCW")] public static partial Plane Plane_FromPointsCCW(float3 v1, float3 v2, float3 v3); /// /// /// Properties /// /// /// C++: /// Jolt/Geometry/Plane.h:30 ///
/// Vec3 GetNormal() const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_GetNormal")] public static partial float3 Plane_GetNormal(ref Plane self); /// /// /// C++: /// Jolt/Geometry/Plane.h:31 ///
/// void SetNormal(Vec3Arg inNormal) ///
///
[LibraryImport("jolt", EntryPoint = "Plane_SetNormal")] public static partial void Plane_SetNormal(ref Plane self, float3 normal); /// /// /// C++: /// Jolt/Geometry/Plane.h:32 ///
/// float GetConstant() const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_GetConstant")] public static partial float Plane_GetConstant(ref Plane self); /// /// /// C++: /// Jolt/Geometry/Plane.h:33 ///
/// void SetConstant(float inConstant) ///
///
[LibraryImport("jolt", EntryPoint = "Plane_SetConstant")] public static partial void Plane_SetConstant(ref Plane self, float constant); /// /// /// Store as 4 floats /// /// /// C++: /// Jolt/Geometry/Plane.h:36 ///
/// void StoreFloat4(Float4 *outV) const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_StoreFloat4")] public static partial void Plane_StoreFloat4(ref Plane self, float4* v); /// /// /// Offset the plane (positive value means move it in the direction of the plane normal) /// /// /// C++: /// Jolt/Geometry/Plane.h:39 ///
/// Plane Offset(float inDistance) const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_Offset")] public static partial Plane Plane_Offset(ref Plane self, float distance); /// /// /// Transform the plane by a matrix /// /// /// C++: /// Jolt/Geometry/Plane.h:42 ///
/// inline Plane GetTransformed(Mat44Arg inTransform) const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_GetTransformed")] public static partial Plane Plane_GetTransformed(ref Plane self, in float4x4 transform); /// /// /// Scale the plane, can handle non-uniform and negative scaling /// /// /// C++: /// Jolt/Geometry/Plane.h:49 ///
/// inline Plane Scaled(Vec3Arg inScale) const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_Scaled")] public static partial Plane Plane_Scaled(ref Plane self, float3 scale); /// /// /// Distance point to plane /// /// /// C++: /// Jolt/Geometry/Plane.h:57 ///
/// float SignedDistance(Vec3Arg inPoint) const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_SignedDistance")] public static partial float Plane_SignedDistance(ref Plane self, float3 point); /// /// /// Project inPoint onto the plane /// /// /// C++: /// Jolt/Geometry/Plane.h:60 ///
/// Vec3 ProjectPointOnPlane(Vec3Arg inPoint) const ///
///
[LibraryImport("jolt", EntryPoint = "Plane_ProjectPointOnPlane")] public static partial float3 Plane_ProjectPointOnPlane(ref Plane self, float3 point); /// [LibraryImport("jolt", EntryPoint = "Plane_IntersectPlanes")] public static partial Brutal.Bool8 Plane_IntersectPlanes( in Plane p1, in Plane p2, in Plane p3, out float3 point ); } } }