Class Math
Inheritance
System.Object
Math
Syntax
Methods
CalculatePerpendicularNormalized(float3, out float3, out float3)
Declaration
public static void CalculatePerpendicularNormalized(float3 v, out float3 p, out float3 q)
Parameters
Type |
Name |
Description |
float3 |
v |
|
float3 |
p |
|
float3 |
q |
|
CalculateTwistAngle(quaternion, Int32)
Declaration
public static float CalculateTwistAngle(quaternion q, int twistAxisIndex)
Parameters
Type |
Name |
Description |
quaternion |
q |
|
System.Int32 |
twistAxisIndex |
|
Returns
Type |
Description |
System.Single |
|
Det(float3, float3, float3)
Declaration
public static float Det(float3 a, float3 b, float3 c)
Parameters
Type |
Name |
Description |
float3 |
a |
|
float3 |
b |
|
float3 |
c |
|
Returns
Type |
Description |
System.Single |
|
DiagonalizeSymmetricApproximation(float3x3, out float3x3, out float3)
Declaration
public static void DiagonalizeSymmetricApproximation(float3x3 a, out float3x3 eigenVectors, out float3 eigenValues)
Parameters
Type |
Name |
Description |
float3x3 |
a |
|
float3x3 |
eigenVectors |
|
float3 |
eigenValues |
|
Dotxyz1(float4, float3)
Declaration
public static float Dotxyz1(float4 lhs, float3 rhs)
Parameters
Type |
Name |
Description |
float4 |
lhs |
|
float3 |
rhs |
|
Returns
Type |
Description |
System.Single |
|
FromToRotation(float3, float3)
Declaration
public static quaternion FromToRotation(float3 from, float3 to)
Parameters
Type |
Name |
Description |
float3 |
from |
|
float3 |
to |
|
Returns
Type |
Description |
quaternion |
|
HorizontalMul(float3)
Declaration
public static float HorizontalMul(float3 v)
Parameters
Type |
Name |
Description |
float3 |
v |
|
Returns
Type |
Description |
System.Single |
|
HorizontalMul(float4)
Declaration
public static float HorizontalMul(float4 v)
Parameters
Type |
Name |
Description |
float4 |
v |
|
Returns
Type |
Description |
System.Single |
|
IndexOfMaxComponent(float2)
Declaration
public static int IndexOfMaxComponent(float2 v)
Parameters
Type |
Name |
Description |
float2 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOfMaxComponent(float3)
Declaration
public static int IndexOfMaxComponent(float3 v)
Parameters
Type |
Name |
Description |
float3 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOfMaxComponent(float4)
Declaration
public static int IndexOfMaxComponent(float4 v)
Parameters
Type |
Name |
Description |
float4 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOfMinComponent(float2)
Declaration
public static int IndexOfMinComponent(float2 v)
Parameters
Type |
Name |
Description |
float2 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOfMinComponent(float3)
Declaration
public static int IndexOfMinComponent(float3 v)
Parameters
Type |
Name |
Description |
float3 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOfMinComponent(float4)
Declaration
public static int IndexOfMinComponent(float4 v)
Parameters
Type |
Name |
Description |
float4 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static Math.MTransform Inverse(Math.MTransform a)
Parameters
Returns
IsNormalized(float3)
Declaration
public static bool IsNormalized(float3 v)
Parameters
Type |
Name |
Description |
float3 |
v |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static float3 Mul(Math.MTransform a, float3 x)
Parameters
Returns
Declaration
public static Math.MTransform Mul(Math.MTransform cFromB, Math.MTransform bFromA)
Parameters
Returns
NextMultipleOf(Int32, Int32)
Declaration
public static int NextMultipleOf(int input, int alignment)
Parameters
Type |
Name |
Description |
System.Int32 |
input |
|
System.Int32 |
alignment |
|
Returns
Type |
Description |
System.Int32 |
|
NextMultipleOf(UInt64, UInt64)
Declaration
public static ulong NextMultipleOf(ulong input, ulong alignment)
Parameters
Type |
Name |
Description |
System.UInt64 |
input |
|
System.UInt64 |
alignment |
|
Returns
Type |
Description |
System.UInt64 |
|
NextMultipleOf16(Int32)
Declaration
public static int NextMultipleOf16(int input)
Parameters
Type |
Name |
Description |
System.Int32 |
input |
|
Returns
Type |
Description |
System.Int32 |
|
NextMultipleOf16(UInt64)
Declaration
public static ulong NextMultipleOf16(ulong input)
Parameters
Type |
Name |
Description |
System.UInt64 |
input |
|
Returns
Type |
Description |
System.UInt64 |
|
NormalizeWithLength(float3, out float3)
Declaration
public static float NormalizeWithLength(float3 v, out float3 n)
Parameters
Type |
Name |
Description |
float3 |
v |
|
float3 |
n |
|
Returns
Type |
Description |
System.Single |
|
PlaneFromDirection(float3, float3)
Declaration
public static Plane PlaneFromDirection(float3 origin, float3 direction)
Parameters
Type |
Name |
Description |
float3 |
origin |
|
float3 |
direction |
|
Returns
PlaneFromTwoEdges(float3, float3, float3)
Declaration
public static Plane PlaneFromTwoEdges(float3 origin, float3 edgeA, float3 edgeB)
Parameters
Type |
Name |
Description |
float3 |
origin |
|
float3 |
edgeA |
|
float3 |
edgeB |
|
Returns
RSqrtSafe(Single)
Declaration
public static float RSqrtSafe(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Returns
Type |
Description |
System.Single |
|
Declaration
public static Aabb TransformAabb(RigidTransform transform, Aabb aabb)
Parameters
Type |
Name |
Description |
RigidTransform |
transform |
|
Aabb |
aabb |
|
Returns
Declaration
public static Aabb TransformAabb(Math.MTransform transform, Aabb aabb)
Parameters
Returns
Declaration
public static Plane TransformPlane(RigidTransform transform, Plane plane)
Parameters
Type |
Name |
Description |
RigidTransform |
transform |
|
Plane |
plane |
|
Returns
Declaration
public static Plane TransformPlane(Math.MTransform transform, Plane plane)
Parameters
Returns