Merge remote-tracking branch 'origin/gi' into large-worlds
# Conflicts: # Source/Engine/Core/Math/Vector3.h
This commit is contained in:
@@ -11,6 +11,7 @@ struct Double3;
|
||||
struct Double4;
|
||||
struct Quaternion;
|
||||
struct Matrix;
|
||||
struct Matrix3x3;
|
||||
struct Vector2;
|
||||
struct Vector4;
|
||||
struct Color;
|
||||
@@ -215,7 +216,7 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns average arithmetic of all the components
|
||||
/// Returns the average arithmetic of all the components.
|
||||
/// </summary>
|
||||
float AverageArithmetic() const
|
||||
{
|
||||
@@ -223,7 +224,7 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets sum of all vector components values.
|
||||
/// Gets the sum of all vector components values.
|
||||
/// </summary>
|
||||
float SumValues() const
|
||||
{
|
||||
@@ -231,7 +232,7 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns minimum value of all the components.
|
||||
/// Returns the minimum value of all the components.
|
||||
/// </summary>
|
||||
float MinValue() const
|
||||
{
|
||||
@@ -239,7 +240,7 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns maximum value of all the components.
|
||||
/// Returns the maximum value of all the components.
|
||||
/// </summary>
|
||||
float MaxValue() const
|
||||
{
|
||||
@@ -255,9 +256,8 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if vector has one or more components equal to +/- infinity
|
||||
/// Returns true if vector has one or more components equal to +/- infinity.
|
||||
/// </summary>
|
||||
/// <returns>True if one or more components equal to +/- infinity</returns>
|
||||
bool IsInfinity() const
|
||||
{
|
||||
return isinf(X) || isinf(Y) || isinf(Z);
|
||||
@@ -714,6 +714,12 @@ public:
|
||||
// @param vectorsCount Amount of vectors to transform
|
||||
static void Transform(const Vector3* vectors, const Matrix& transform, Vector3* results, int32 vectorsCount);
|
||||
|
||||
// Transforms a 3D vector by the given matrix
|
||||
// @param vector The source vector
|
||||
// @param transform The transformation matrix
|
||||
// @param result When the method completes, contains the transformed Vector3
|
||||
static void Transform(const Vector3& vector, const Matrix3x3& transform, Vector3& result);
|
||||
|
||||
// Transforms a 3D vector by the given matrix
|
||||
// @param vector The source vector
|
||||
// @param transform The transformation matrix
|
||||
|
||||
Reference in New Issue
Block a user