Clarify doc comment
This commit is contained in:
@@ -241,7 +241,7 @@ float4 FindQuatBetween(float3 from, float3 to)
|
||||
return normalize(result);
|
||||
}
|
||||
|
||||
// Rotates Position about the given axis by the given angle, in radians, and returns the offset to position
|
||||
// Rotates position about the input axis by the given angle (in radians), and returns the delta to position
|
||||
float3 RotateAboutAxis(float4 normalizedRotationAxisAndAngle, float3 positionOnAxis, float3 position)
|
||||
{
|
||||
float3 pointOnAxis = positionOnAxis + normalizedRotationAxisAndAngle.xyz * dot(normalizedRotationAxisAndAngle.xyz, position - positionOnAxis);
|
||||
|
||||
Reference in New Issue
Block a user