Clarify doc comment
This commit is contained in:
@@ -901,7 +901,7 @@ namespace Math
|
||||
return length - Abs(Repeat(t, length * 2.0f) - length);
|
||||
}
|
||||
|
||||
// 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
|
||||
Vector3 FLAXENGINE_API RotateAboutAxis(const Vector3& normalizedRotationAxis, float angle, const Vector3& positionOnAxis, const Vector3& position);
|
||||
|
||||
Vector3 FLAXENGINE_API ExtractLargestComponent(const Vector3& v);
|
||||
|
||||
@@ -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