次の方法で共有


Matrix.CreateTranslation Method (Single, Single, Single, Matrix)

Creates a translation Matrix.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public static void CreateTranslation (
         float xPosition,
         float yPosition,
         float zPosition,
         out Matrix result
)

Parameters

  • xPosition
    Value to translate by on the x-axis.
  • yPosition
    Value to translate by on the y-axis.
  • zPosition
    Value to translate by on the z-axis.
  • result
    [OutAttribute] The created translation Matrix.

See Also

Tasks

How to: Transform a Point with a Matrix
How to: Rotate and Move a Camera
How to: Make a First-Person Camera
How to: Make a Third-Person Camera

Reference

Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista