Package | Description |
---|---|
Microsoft.Xna.Framework | |
Microsoft.Xna.Framework.Content | |
Microsoft.Xna.Framework.Graphics | |
Microsoft.Xna.Framework.Net |
Modifier and Type | Method and Description |
---|---|
static Matrix |
Matrix.Add(Matrix matrix1,
Matrix matrix2)
Adds a matrix to another matrix.
|
static Matrix |
Matrix.CreateBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 cameraUpVector,
Vector3 cameraForwardVector)
Creates a spherical billboard that rotates around a specified object position.
|
static Matrix |
Matrix.CreateConstrainedBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 rotateAxis,
Vector3 cameraForwardVector,
Vector3 objectForwardVector)
Creates a cylindrical billboard that rotates around a specified axis.
|
static Matrix |
Matrix.CreateFromAxisAngle(Vector3 axis,
float angle)
Creates a new Matrix that rotates around an arbitrary vector.
|
static Matrix |
Matrix.CreateFromQuaternion(Quaternion quaternion)
Creates a rotation Matrix from a Quaternion.
|
static Matrix |
Matrix.CreateFromYawPitchRoll(float yaw,
float pitch,
float roll)
Creates a new rotation matrix from a specified yaw, pitch, and roll.
|
static Matrix |
Matrix.CreateLookAt(Vector3 cameraPosition,
Vector3 cameraTarget,
Vector3 cameraUpVector)
Creates a view matrix.
|
static Matrix |
Matrix.CreateOrthographic(float width,
float height,
float zNearPlane,
float zFarPlane)
Builds an orthogonal projection matrix.
|
static Matrix |
Matrix.CreateOrthographicOffCenter(float left,
float right,
float bottom,
float top,
float zNearPlane,
float zFarPlane)
Builds a customized, orthogonal projection matrix.
|
static Matrix |
Matrix.CreatePerspective(float width,
float height,
float nearPlaneDistance,
float farPlaneDistance)
Builds a perspective projection matrix and returns the result by value.
|
static Matrix |
Matrix.CreatePerspectiveFieldOfView(float fieldOfView,
float aspectRatio,
float nearPlaneDistance,
float farPlaneDistance)
Builds a perspective projection matrix based on a field of view and returns by value.
|
static Matrix |
Matrix.CreatePerspectiveOffCenter(float left,
float right,
float bottom,
float top,
float nearPlaneDistance,
float farPlaneDistance)
Builds a customized, perspective projection matrix.
|
static Matrix |
Matrix.CreateReflection(Plane value)
Creates a Matrix that reflects the coordinate system about a specified Plane.
|
static Matrix |
Matrix.CreateRotationX(float radians)
Returns a matrix that can be used to rotate a set of vertices around the x-axis.
|
static Matrix |
Matrix.CreateRotationY(float radians)
Returns a matrix that can be used to rotate a set of vertices around the y-axis.
|
static Matrix |
Matrix.CreateRotationZ(float radians)
Returns a matrix that can be used to rotate a set of vertices around the z-axis.
|
static Matrix |
Matrix.CreateScale(float scale)
Creates a scaling Matrix.
|
static Matrix |
Matrix.CreateScale(float xScale,
float yScale,
float zScale)
Creates a scaling Matrix.
|
static Matrix |
Matrix.CreateScale(Vector3 scales)
Creates a scaling Matrix.
|
static Matrix |
Matrix.CreateShadow(Vector3 lightDirection,
Plane plane)
Creates a Matrix that flattens geometry into a specified Plane as if casting a shadow from a specified light source.
|
static Matrix |
Matrix.CreateTranslation(float xPosition,
float yPosition,
float zPosition)
Creates a translation Matrix.
|
static Matrix |
Matrix.CreateTranslation(Vector3 position)
Creates a translation Matrix.
|
static Matrix |
Matrix.CreateWorld(Vector3 position,
Vector3 forward,
Vector3 up)
Creates a world matrix with the specified parameters.
|
static Matrix |
Matrix.Divide(Matrix matrix1,
float divider)
Divides the components of a matrix by a scalar.
|
static Matrix |
Matrix.Divide(Matrix matrix1,
Matrix matrix2)
Divides the components of a matrix by the corresponding components of another matrix.
|
static Matrix |
Matrix.getIdentity()
Returns an instance of the identity matrix.
|
static Matrix |
Matrix.Invert(Matrix matrix)
Calculates the inverse of a matrix.
|
static Matrix |
Matrix.Lerp(Matrix matrix1,
Matrix matrix2,
float amount)
Linearly interpolates between the corresponding values of two matrices.
|
static Matrix |
Matrix.Multiply(Matrix matrix1,
float scaleFactor)
Multiplies a matrix by a scalar value.
|
static Matrix |
Matrix.Multiply(Matrix matrix1,
Matrix matrix2)
Multiplies a matrix by another matrix.
|
static Matrix |
Matrix.Negate(Matrix matrix)
Negates individual elements of a matrix.
|
static Matrix |
Matrix.Subtract(Matrix matrix1,
Matrix matrix2)
Subtracts matrices.
|
static Matrix |
Matrix.Transform(Matrix value,
Quaternion rotation)
Transforms a Matrix by applying a Quaternion rotation.
|
static Matrix |
Matrix.Transpose(Matrix matrix)
Transposes the rows and columns of a matrix.
|
Modifier and Type | Method and Description |
---|---|
void |
Matrix.Add(Matrix other)
Adds the current matrix to another matrix.
|
static Matrix |
Matrix.Add(Matrix matrix1,
Matrix matrix2)
Adds a matrix to another matrix.
|
static void |
Matrix.Add(Matrix matrix1,
Matrix matrix2,
Matrix result)
Adds a matrix to another matrix.
|
static void |
Matrix.CreateBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 cameraUpVector,
Vector3 cameraForwardVector,
Matrix result)
Creates a spherical billboard that rotates around a specified object position.
|
static void |
Matrix.CreateConstrainedBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 rotateAxis,
Vector3 cameraForwardVector,
Vector3 objectForwardVector,
Matrix result)
Creates a cylindrical billboard that rotates around a specified axis.
|
static void |
Matrix.CreateFromAxisAngle(Vector3 axis,
float angle,
Matrix result)
Creates a new Matrix that rotates around an arbitrary vector.
|
static void |
Matrix.CreateFromQuaternion(Quaternion quaternion,
Matrix result)
Creates a rotation Matrix from a Quaternion.
|
static Quaternion |
Quaternion.CreateFromRotationMatrix(Matrix matrix)
Creates a Quaternion from a rotation Matrix.
|
static void |
Quaternion.CreateFromRotationMatrix(Matrix matrix,
Quaternion result)
Creates a Quaternion from a rotation Matrix.
|
static void |
Matrix.CreateFromYawPitchRoll(float yaw,
float pitch,
float roll,
Matrix result)
Creates a new rotation matrix from a specified yaw, pitch, and roll.
|
static void |
Matrix.CreateLookAt(Vector3 cameraPosition,
Vector3 cameraTarget,
Vector3 cameraUpVector,
Matrix result)
Creates a view matrix.
|
static void |
Matrix.CreateOrthographic(float width,
float height,
float zNearPlane,
float zFarPlane,
Matrix result)
Builds an orthogonal projection matrix.
|
static void |
Matrix.CreateOrthographicOffCenter(float left,
float right,
float bottom,
float top,
float zNearPlane,
float zFarPlane,
Matrix result)
Builds a customized, orthogonal projection matrix.
|
static void |
Matrix.CreatePerspective(float width,
float height,
float nearPlaneDistance,
float farPlaneDistance,
Matrix result)
Builds a perspective projection matrix and returns the result by reference.
|
static void |
Matrix.CreatePerspectiveFieldOfView(float fieldOfView,
float aspectRatio,
float nearPlaneDistance,
float farPlaneDistance,
Matrix result)
Builds a perspective projection matrix based on a field of view and returns by reference.
|
static void |
Matrix.CreatePerspectiveOffCenter(float left,
float right,
float bottom,
float top,
float nearPlaneDistance,
float farPlaneDistance,
Matrix result)
Builds a customized, perspective projection matrix.
|
static void |
Matrix.CreateReflection(Plane value,
Matrix result)
Creates a Matrix that reflects the coordinate system about a specified Plane.
|
static void |
Matrix.CreateRotationX(float radians,
Matrix result)
Populates data into a user-specified matrix that can be used to rotate a set of vertices around the x-axis.
|
static void |
Matrix.CreateRotationY(float radians,
Matrix result)
Populates data into a user-specified matrix that can be used to rotate a set of vertices around the y-axis.
|
static void |
Matrix.CreateRotationZ(float radians,
Matrix result)
Populates data into a user-specified matrix that can be used to rotate a set of vertices around the z-axis.
|
static void |
Matrix.CreateScale(float xScale,
float yScale,
float zScale,
Matrix result)
Creates a scaling Matrix.
|
static void |
Matrix.CreateScale(float scale,
Matrix result)
Creates a scaling Matrix.
|
static void |
Matrix.CreateScale(Vector3 scales,
Matrix result)
Creates a scaling Matrix.
|
static void |
Matrix.CreateShadow(Vector3 lightDirection,
Plane plane,
Matrix result)
Fills in a Matrix to flatten geometry into a specified Plane as if casting a shadow from a specified light source.
|
static void |
Matrix.CreateTranslation(float xPosition,
float yPosition,
float zPosition,
Matrix result)
Creates a translation Matrix.
|
static void |
Matrix.CreateTranslation(Vector3 position,
Matrix result)
Creates a translation Matrix.
|
static void |
Matrix.CreateWorld(Vector3 position,
Vector3 forward,
Vector3 up,
Matrix result)
Creates a world matrix with the specified parameters.
|
void |
Matrix.Divide(Matrix other)
Divides the components of the current matrix by the corresponding components of another matrix.
|
static Matrix |
Matrix.Divide(Matrix matrix1,
float divider)
Divides the components of a matrix by a scalar.
|
static void |
Matrix.Divide(Matrix matrix1,
float divider,
Matrix result)
Divides the components of a matrix by a scalar.
|
static Matrix |
Matrix.Divide(Matrix matrix1,
Matrix matrix2)
Divides the components of a matrix by the corresponding components of another matrix.
|
static void |
Matrix.Divide(Matrix matrix1,
Matrix matrix2,
Matrix result)
Divides the components of a matrix by the corresponding components of another matrix.
|
boolean |
Matrix.Equals(Matrix other)
Determines whether the specified Object is equal to the Matrix.
|
static Matrix |
Matrix.Invert(Matrix matrix)
Calculates the inverse of a matrix.
|
static void |
Matrix.Invert(Matrix matrix,
Matrix result)
Calculates the inverse of a matrix.
|
static Matrix |
Matrix.Lerp(Matrix matrix1,
Matrix matrix2,
float amount)
Linearly interpolates between the corresponding values of two matrices.
|
static void |
Matrix.Lerp(Matrix matrix1,
Matrix matrix2,
float amount,
Matrix result)
Linearly interpolates between the corresponding values of two matrices.
|
void |
Matrix.Multiply(Matrix other)
Multiplies the current matrix by another matrix.
|
static Matrix |
Matrix.Multiply(Matrix matrix1,
float scaleFactor)
Multiplies a matrix by a scalar value.
|
static void |
Matrix.Multiply(Matrix matrix1,
float scaleFactor,
Matrix result)
Multiplies a matrix by a scalar value.
|
static Matrix |
Matrix.Multiply(Matrix matrix1,
Matrix matrix2)
Multiplies a matrix by another matrix.
|
static void |
Matrix.Multiply(Matrix matrix1,
Matrix matrix2,
Matrix result)
Multiplies a matrix by another matrix.
|
static Matrix |
Matrix.Negate(Matrix matrix)
Negates individual elements of a matrix.
|
static void |
Matrix.Negate(Matrix matrix,
Matrix result)
Negates individual elements of a matrix.
|
void |
Matrix.Subtract(Matrix other)
Subtracts the specified matrix from the current matrix.
|
static Matrix |
Matrix.Subtract(Matrix matrix1,
Matrix matrix2)
Subtracts matrices.
|
static void |
Matrix.Subtract(Matrix matrix1,
Matrix matrix2,
Matrix result)
Subtracts matrices.
|
BoundingSphere |
BoundingSphere.Transform(Matrix matrix)
Translates and scales the BoundingSphere using a given Matrix.
|
void |
BoundingSphere.Transform(Matrix matrix,
BoundingSphere result)
Translates and scales the BoundingSphere using a given Matrix.
|
static Matrix |
Matrix.Transform(Matrix value,
Quaternion rotation)
Transforms a Matrix by applying a Quaternion rotation.
|
static void |
Matrix.Transform(Matrix value,
Quaternion rotation,
Matrix result)
Transforms a Matrix by applying a Quaternion rotation.
|
static Plane |
Plane.Transform(Plane plane,
Matrix matrix)
Transforms a normalized Plane by a Matrix.
|
static void |
Plane.Transform(Plane plane,
Matrix matrix,
Plane result)
Transforms a normalized Plane by a Matrix.
|
static void |
Vector2.Transform(Vector2[] sourceArray,
int sourceIndex,
Matrix matrix,
Vector2[] destinationArray,
int destinationIndex,
int length)
Transforms a specified range in an array of Vector2s by a specified Matrix and places the results in a specified range in a destination array.
|
static void |
Vector2.Transform(Vector2[] sourceArray,
Matrix matrix,
Vector2[] destinationArray)
Transforms an array of Vector2s by a specified Matrix.
|
static Vector4 |
Vector4.Transform(Vector2 position,
Matrix matrix)
Transforms a Vector2 by the given Matrix.
|
static Vector2 |
Vector2.Transform(Vector2 position,
Matrix matrix)
Transforms the vector (x, y, 0, 1) by the specified matrix.
|
static void |
Vector2.Transform(Vector2 position,
Matrix matrix,
Vector2 result)
Transforms the vector (x, y, 0, 1) by the specified matrix.
|
static void |
Vector4.Transform(Vector2 position,
Matrix matrix,
Vector4 result)
Transforms a Vector2 by the given Matrix.
|
static void |
Vector3.Transform(Vector3[] sourceArray,
int sourceIndex,
Matrix matrix,
Vector3[] destinationArray,
int destinationIndex,
int length)
Applies a specified transform Matrix to a specified range of an array of Vector3s and writes the results into a specified range of a destination array.
|
static void |
Vector3.Transform(Vector3[] sourceArray,
Matrix matrix,
Vector3[] destinationArray)
Transforms a source array of Vector3s by a specified Matrix and writes the results to an existing destination array.
|
static Vector4 |
Vector4.Transform(Vector3 position,
Matrix matrix)
Transforms a Vector3 by the given Matrix.
|
static Vector3 |
Vector3.Transform(Vector3 position,
Matrix matrix)
Transforms a 3D vector by the given matrix.
|
static void |
Vector3.Transform(Vector3 position,
Matrix matrix,
Vector3 result)
Transforms a Vector3 by the given Matrix.
|
static void |
Vector4.Transform(Vector3 position,
Matrix matrix,
Vector4 result)
Transforms a Vector3 by the given Matrix.
|
static void |
Vector4.Transform(Vector4[] sourceArray,
int sourceIndex,
Matrix matrix,
Vector4[] destinationArray,
int destinationIndex,
int length)
Transforms a specified range in an array of Vector4s by a specified Matrix into a specified range in a destination array.
|
static void |
Vector4.Transform(Vector4[] sourceArray,
Matrix matrix,
Vector4[] destinationArray)
Transforms an array of Vector4s by a specified Matrix.
|
static Vector4 |
Vector4.Transform(Vector4 vector,
Matrix matrix)
Transforms a Vector4 by the specified Matrix.
|
static void |
Vector4.Transform(Vector4 vector,
Matrix matrix,
Vector4 result)
Transforms a Vector4 by the given Matrix.
|
static void |
Vector2.TransformNormal(Vector2[] sourceArray,
int sourceIndex,
Matrix matrix,
Vector2[] destinationArray,
int destinationIndex,
int length)
Transforms a specified range in an array of Vector2 vector normals by a specified Matrix and places the results in a specified range in a destination array.
|
static void |
Vector2.TransformNormal(Vector2[] sourceArray,
Matrix matrix,
Vector2[] destinationArray)
Transforms an array of Vector2 vector normals by a specified Matrix.
|
static Vector2 |
Vector2.TransformNormal(Vector2 normal,
Matrix matrix)
Transforms a 2D vector normal by a matrix.
|
static void |
Vector2.TransformNormal(Vector2 normal,
Matrix matrix,
Vector2 result)
Transforms a vector normal by a matrix.
|
static void |
Vector3.TransformNormal(Vector3[] sourceArray,
int sourceIndex,
Matrix matrix,
Vector3[] destinationArray,
int destinationIndex,
int length)
Transforms a specified range in an array of 3D vector normals by a specified Matrix and writes the results to a specified range in a destination array.
|
static void |
Vector3.TransformNormal(Vector3[] sourceArray,
Matrix matrix,
Vector3[] destinationArray)
Transforms an array of 3D vector normals by a specified Matrix.
|
static Vector3 |
Vector3.TransformNormal(Vector3 normal,
Matrix matrix)
Transforms a 3D vector normal by a matrix.
|
static void |
Vector3.TransformNormal(Vector3 normal,
Matrix matrix,
Vector3 result)
Transforms a vector normal by a matrix.
|
static Matrix |
Matrix.Transpose(Matrix matrix)
Transposes the rows and columns of a matrix.
|
static void |
Matrix.Transpose(Matrix matrix,
Matrix result)
Transposes the rows and columns of a matrix.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
ContentReader.ReadMatrix()
Reads a Matrix value from the currently open stream.
|
Modifier and Type | Field and Description |
---|---|
Matrix |
ModelBone.Transform
Gets or sets the matrix used to transform this bone relative to its parent bone.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
IEffectMatrices.getProjection() |
Matrix |
DualTextureEffect.getProjection() |
Matrix |
EffectParameter.GetValueMatrix()
Gets the value of the EffectParameter as a Matrix.
|
Matrix |
EffectAnnotation.GetValueMatrix()
Gets the value of the EffectAnnotation as a Matrix.
|
Matrix[] |
EffectParameter.GetValueMatrixArray(int count)
Gets the value of the EffectParameter as an array of Matrix.
|
Matrix |
EffectParameter.GetValueMatrixTranspose()
Gets the value of the EffectParameter as a transposed Matrix.
|
Matrix[] |
EffectParameter.GetValueMatrixTransposeArray(int count)
Gets the value of the EffectParameter as an array of transposed Matrices.
|
Matrix |
IEffectMatrices.getView() |
Matrix |
DualTextureEffect.getView()
Gets the view matrix.
|
Matrix |
IEffectMatrices.getWorld() |
Matrix |
DualTextureEffect.getWorld()
Gets the world matrix.
|
Modifier and Type | Method and Description |
---|---|
void |
SpriteBatch.Begin(SpriteSortMode sortMode,
BlendState blendState,
SamplerState samplerState,
DepthStencilState depthStencilState,
RasterizerState rasterizerState,
Effect effect,
Matrix transformMatrix)
Begins a sprite batch operation using the specified sort, blend, sampler, depth stencil, rasterizer state objects, plus a custom effect and a 2D transformation matrix.
|
void |
Model.CopyAbsoluteBoneTransformsTo(Matrix[] destinationBoneTransforms)
Copies a transform of each bone in a model relative to all parent bones of the bone into a given array.
|
void |
Model.CopyBoneTransformsFrom(Matrix[] sourceBoneTransforms)
Copies an array of transforms into each bone in the model.
|
void |
Model.CopyBoneTransformsTo(Matrix[] destinationBoneTransforms)
Copies each bone transform relative only to the parent bone of the model to a given array.
|
void |
Model.Draw(Matrix world,
Matrix view,
Matrix projection)
Render a model after applying the matrix transformations.
|
Vector3 |
Viewport.Project(Vector3 source,
Matrix projection,
Matrix view,
Matrix world)
Projects a 3D vector from object space into screen space.
|
void |
IEffectMatrices.setProjection(Matrix value) |
void |
DualTextureEffect.setProjection(Matrix value) |
void |
EffectParameter.SetValue(Matrix value)
Sets the value of the EffectParameter.
|
void |
EffectParameter.SetValue(Matrix[] value)
Sets the value of the EffectParameter.
|
void |
IEffectMatrices.setView(Matrix value) |
void |
DualTextureEffect.setView(Matrix value)
Sets the view matrix.
|
void |
IEffectMatrices.setWorld(Matrix value) |
void |
DualTextureEffect.setWorld(Matrix value)
Sets the world matrix.
|
Vector3 |
Viewport.Unproject(Vector3 source,
Matrix projection,
Matrix view,
Matrix world)
Converts a screen space point into a corresponding point in world space.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
PacketReader.ReadMatrix()
Reads a Matrix value.
|
Modifier and Type | Method and Description |
---|---|
void |
PacketWriter.Write(Matrix value)
Writes a Matrix value to an outgoing network packet.
|