Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ShaderMat44.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2025 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5inline float3 JPH_Mat44MulVec3(JPH_Mat44 inLHS, float3 inRHS)
6{
7 return inLHS[0].xyz * inRHS.x + inLHS[1].xyz * inRHS.y + inLHS[2].xyz * inRHS.z + inLHS[3].xyz;
8}
9
10inline float3 JPH_Mat44Mul3x3Vec3(JPH_Mat44 inLHS, float3 inRHS)
11{
12 return inLHS[0].xyz * inRHS.x + inLHS[1].xyz * inRHS.y + inLHS[2].xyz * inRHS.z;
13}
float4x4 JPH_Mat44
Definition ShaderCore.h:50
float3 JPH_Mat44Mul3x3Vec3(JPH_Mat44 inLHS, float3 inRHS)
Definition ShaderMat44.h:10
float3 JPH_Mat44MulVec3(JPH_Mat44 inLHS, float3 inRHS)
Definition ShaderMat44.h:5