Matrix4
اعلان
public struct Strawberry.Math.Matrix4
پیادهسازی میکند (Implements): System.IEquatable
سازندهها
Matrix4
سازنده برای ماتریس ۴×۴
void Matrix4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
m11 |
System.Single |
یک Single |
m12 |
System.Single |
یک Single |
m13 |
System.Single |
یک Single |
m14 |
System.Single |
یک Single |
m21 |
System.Single |
یک Single |
m22 |
System.Single |
یک Single |
m23 |
System.Single |
یک Single |
m24 |
System.Single |
یک Single |
m31 |
System.Single |
یک Single |
m32 |
System.Single |
یک Single |
m33 |
System.Single |
یک Single |
m34 |
System.Single |
یک Single |
m41 |
System.Single |
یک Single |
m42 |
System.Single |
یک Single |
m43 |
System.Single |
یک Single |
m44 |
System.Single |
یک Single |
ویژگیها (Properties)
Identity static
Matrix4 Identity { get }
Array
float[] Array { get }
Backward
Vector3 Backward { get set }
Down
Vector3 Down { get set }
Forward
Vector3 Forward { get set }
Left
Vector3 Left { get set }
Right
Vector3 Right { get set }
Translation
Vector3 Translation { get set }
Up
Vector3 Up { get set }
فیلدها
M11
float M11
M12
float M12
M13
float M13
M14
float M14
M21
float M21
M22
float M22
M23
float M23
M24
float M24
M31
float M31
M32
float M32
M33
float M33
M34
float M34
M41
float M41
M42
float M42
M43
float M43
M44
float M44
متدها
CreateWorld static
Matrix4 CreateWorld(Vector3 position, Vector3 forward, Vector3 up)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
position |
Strawberry.Math.Vector3 |
|
forward |
Strawberry.Math.Vector3 |
|
up |
Strawberry.Math.Vector3 |
CreateWorld static
void CreateWorld(ref Vector3 position, ref Vector3 forward, ref Vector3 up, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
position |
ref Strawberry.Math.Vector3 |
|
forward |
ref Strawberry.Math.Vector3 |
|
up |
ref Strawberry.Math.Vector3 |
|
result |
out Strawberry.Math.Matrix4 |
Add static
ماتریس دوم را به ماتریس اول اضافه میکند.
Matrix4 Add(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
یک Matrix4 |
matrix2 |
Strawberry.Math.Matrix4 |
یک Matrix4 |
برمیگرداند: یک Matrix4
Add static
دو ماتریس را با هم جمع میکند و در ماتریس نتیجه ذخیره میکند
void Add(ref Matrix4 matrix1, ref Matrix4 matrix2, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
یک Matrix4 |
matrix2 |
ref Strawberry.Math.Matrix4 |
یک Matrix4 |
result |
out Strawberry.Math.Matrix4 |
یک Matrix4 |
CreateBillboard static
Matrix4 CreateBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3? cameraForwardVector)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
objectPosition |
Strawberry.Math.Vector3 |
|
cameraPosition |
Strawberry.Math.Vector3 |
|
cameraUpVector |
Strawberry.Math.Vector3 |
|
cameraForwardVector |
Strawberry.Math.Vector3? |
CreateBillboard static
void CreateBillboard(ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 cameraUpVector, Vector3? cameraForwardVector, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
objectPosition |
ref Strawberry.Math.Vector3 |
|
cameraPosition |
ref Strawberry.Math.Vector3 |
|
cameraUpVector |
ref Strawberry.Math.Vector3 |
|
cameraForwardVector |
Strawberry.Math.Vector3? |
|
result |
out Strawberry.Math.Matrix4 |
CreateConstrainedBillboard static
Matrix4 CreateConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3? cameraForwardVector, Vector3? objectForwardVector)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
objectPosition |
Strawberry.Math.Vector3 |
|
cameraPosition |
Strawberry.Math.Vector3 |
|
rotateAxis |
Strawberry.Math.Vector3 |
|
cameraForwardVector |
Strawberry.Math.Vector3? |
|
objectForwardVector |
Strawberry.Math.Vector3? |
CreateConstrainedBillboard static
void CreateConstrainedBillboard(ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 rotateAxis, Vector3? cameraForwardVector, Vector3? objectForwardVector, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
objectPosition |
ref Strawberry.Math.Vector3 |
|
cameraPosition |
ref Strawberry.Math.Vector3 |
|
rotateAxis |
ref Strawberry.Math.Vector3 |
|
cameraForwardVector |
Strawberry.Math.Vector3? |
|
objectForwardVector |
Strawberry.Math.Vector3? |
|
result |
out Strawberry.Math.Matrix4 |
CreateFromAxisAngle static
Matrix4 CreateFromAxisAngle(Vector3 axis, float angle)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
axis |
Strawberry.Math.Vector3 |
|
angle |
System.Single |
CreateFromAxisAngle static
void CreateFromAxisAngle(ref Vector3 axis, float angle, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
axis |
ref Strawberry.Math.Vector3 |
|
angle |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateLookAt static
Matrix4 CreateLookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
cameraPosition |
Strawberry.Math.Vector3 |
|
cameraTarget |
Strawberry.Math.Vector3 |
|
cameraUpVector |
Strawberry.Math.Vector3 |
CreateLookAt static
void CreateLookAt(ref Vector3 cameraPosition, ref Vector3 cameraTarget, ref Vector3 cameraUpVector, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
cameraPosition |
ref Strawberry.Math.Vector3 |
|
cameraTarget |
ref Strawberry.Math.Vector3 |
|
cameraUpVector |
ref Strawberry.Math.Vector3 |
|
result |
out Strawberry.Math.Matrix4 |
CreateOrthographic static
Matrix4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
width |
System.Single |
|
height |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
CreateOrthographic static
Matrix4 CreateOrthographic(float left, float right, float bottom, float top, float near, float far)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
left |
System.Single |
|
right |
System.Single |
|
bottom |
System.Single |
|
top |
System.Single |
|
near |
System.Single |
|
far |
System.Single |
CreateOrthographic static
void CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
width |
System.Single |
|
height |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateOrthographicOffCenter static
Matrix4 CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
left |
System.Single |
|
right |
System.Single |
|
bottom |
System.Single |
|
top |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
CreateOrthographicOffCenter static
void CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
left |
System.Single |
|
right |
System.Single |
|
bottom |
System.Single |
|
top |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreatePerspective static
Matrix4 CreatePerspective(float width, float height, float zNearPlane, float zFarPlane)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
width |
System.Single |
|
height |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
CreatePerspective static
void CreatePerspective(float width, float height, float zNearPlane, float zFarPlane, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
width |
System.Single |
|
height |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreatePerspectiveFieldOfView static
Matrix4 CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
fieldOfView |
System.Single |
|
aspectRatio |
System.Single |
|
nearPlaneDistance |
System.Single |
|
farPlaneDistance |
System.Single |
CreatePerspectiveFieldOfView static
void CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
fieldOfView |
System.Single |
|
aspectRatio |
System.Single |
|
nearPlaneDistance |
System.Single |
|
farPlaneDistance |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreatePerspectiveOffCenter static
Matrix4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
left |
System.Single |
|
right |
System.Single |
|
bottom |
System.Single |
|
top |
System.Single |
|
zNearPlane |
System.Single |
|
zFarPlane |
System.Single |
CreatePerspectiveOffCenter static
void CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
left |
System.Single |
|
right |
System.Single |
|
bottom |
System.Single |
|
top |
System.Single |
|
nearPlaneDistance |
System.Single |
|
farPlaneDistance |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateRotationX static
Matrix4 CreateRotationX(float radians)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
radians |
System.Single |
CreateRotationX static
void CreateRotationX(float radians, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
radians |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateRotationY static
Matrix4 CreateRotationY(float radians)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
radians |
System.Single |
CreateRotationY static
void CreateRotationY(float radians, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
radians |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateRotationZ static
Matrix4 CreateRotationZ(float radians)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
radians |
System.Single |
CreateRotationZ static
void CreateRotationZ(float radians, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
radians |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateScale static
Matrix4 CreateScale(float scale)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
scale |
System.Single |
CreateScale static
void CreateScale(float scale, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
scale |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateScale static
Matrix4 CreateScale(float xScale, float yScale, float zScale)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
xScale |
System.Single |
|
yScale |
System.Single |
|
zScale |
System.Single |
CreateScale static
void CreateScale(float xScale, float yScale, float zScale, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
xScale |
System.Single |
|
yScale |
System.Single |
|
zScale |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateScale static
Matrix4 CreateScale(Vector3 scales)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
scales |
Strawberry.Math.Vector3 |
CreateScale static
void CreateScale(ref Vector3 scales, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
scales |
ref Strawberry.Math.Vector3 |
|
result |
out Strawberry.Math.Matrix4 |
CreateTranslation static
Matrix4 CreateTranslation(float xPosition, float yPosition, float zPosition)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
xPosition |
System.Single |
|
yPosition |
System.Single |
|
zPosition |
System.Single |
CreateTranslation static
void CreateTranslation(float xPosition, float yPosition, float zPosition, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
xPosition |
System.Single |
|
yPosition |
System.Single |
|
zPosition |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
CreateTranslation static
Matrix4 CreateTranslation(Vector3 position)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
position |
Strawberry.Math.Vector3 |
CreateTranslation static
void CreateTranslation(ref Vector3 position, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
position |
ref Strawberry.Math.Vector3 |
|
result |
out Strawberry.Math.Matrix4 |
Divide static
Matrix4 Divide(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
Divide static
void Divide(ref Matrix4 matrix1, ref Matrix4 matrix2, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
|
matrix2 |
ref Strawberry.Math.Matrix4 |
|
result |
out Strawberry.Math.Matrix4 |
Divide static
Matrix4 Divide(Matrix4 matrix1, float divider)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
divider |
System.Single |
Divide static
void Divide(ref Matrix4 matrix1, float divider, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
|
divider |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
Invert static
Matrix4 Invert(Matrix4 matrix)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
Strawberry.Math.Matrix4 |
Invert static
void Invert(ref Matrix4 matrix, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
ref Strawberry.Math.Matrix4 |
|
result |
out Strawberry.Math.Matrix4 |
Lerp static
Matrix4 Lerp(Matrix4 matrix1, Matrix4 matrix2, float amount)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
|
amount |
System.Single |
Lerp static
void Lerp(ref Matrix4 matrix1, ref Matrix4 matrix2, float amount, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
|
matrix2 |
ref Strawberry.Math.Matrix4 |
|
amount |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
Multiply static
Matrix4 Multiply(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
Multiply static
void Multiply(ref Matrix4 matrix1, ref Matrix4 matrix2, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
|
matrix2 |
ref Strawberry.Math.Matrix4 |
|
result |
out Strawberry.Math.Matrix4 |
Multiply static
Matrix4 Multiply(Matrix4 matrix1, float factor)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
factor |
System.Single |
Multiply static
void Multiply(ref Matrix4 matrix1, float factor, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
|
factor |
System.Single |
|
result |
out Strawberry.Math.Matrix4 |
Negate static
Matrix4 Negate(Matrix4 matrix)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
Strawberry.Math.Matrix4 |
Negate static
void Negate(ref Matrix4 matrix, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
ref Strawberry.Math.Matrix4 |
|
result |
out Strawberry.Math.Matrix4 |
Subtract static
Matrix4 Subtract(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
Subtract static
void Subtract(ref Matrix4 matrix1, ref Matrix4 matrix2, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
ref Strawberry.Math.Matrix4 |
|
matrix2 |
ref Strawberry.Math.Matrix4 |
|
result |
out Strawberry.Math.Matrix4 |
Transpose static
Matrix4 Transpose(Matrix4 matrix)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
Strawberry.Math.Matrix4 |
Transpose static
void Transpose(ref Matrix4 matrix, out Matrix4 result)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
ref Strawberry.Math.Matrix4 |
|
result |
out Strawberry.Math.Matrix4 |
Determinant
float Determinant()
Equals
bool Equals(Matrix4 other)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
other |
Strawberry.Math.Matrix4 |
Equals override
bool Equals(object obj)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
obj |
System.Object |
GetHashCode override
int GetHashCode()
ToString override
string ToString()
عملگرها
op_Addition static
Matrix4 op_Addition(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
op_Division static
Matrix4 op_Division(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
op_Division static
Matrix4 op_Division(Matrix4 matrix1, float divider)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
divider |
System.Single |
op_Equality static
bool op_Equality(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
op_Inequality static
bool op_Inequality(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
op_Multiply static
Matrix4 op_Multiply(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
op_Multiply static
Matrix4 op_Multiply(Matrix4 matrix, float scaleFactor)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix |
Strawberry.Math.Matrix4 |
|
scaleFactor |
System.Single |
op_Multiply static
Matrix4 op_Multiply(float scaleFactor, Matrix4 matrix)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
scaleFactor |
System.Single |
|
matrix |
Strawberry.Math.Matrix4 |
op_Subtraction static
Matrix4 op_Subtraction(Matrix4 matrix1, Matrix4 matrix2)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |
|
matrix2 |
Strawberry.Math.Matrix4 |
op_UnaryNegation static
Matrix4 op_UnaryNegation(Matrix4 matrix1)
پارامترها:
| نام | نوع | توضیحات |
|---|---|---|
matrix1 |
Strawberry.Math.Matrix4 |