Sdílet prostřednictvím


Vector3.Transform Method (Vector3, Matrix)

Transforms a 3D vector by the given matrix.

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

Syntax

public static Vector3 Transform (
         Vector3 position,
         Matrix matrix
)

Parameters

  • position
    The source vector.
  • matrix
    The transformation matrix.

Return Value

The transformed vector.

See Also

Reference

Vector3 Structure
Vector3 Members
Microsoft.Xna.Framework Namespace

Programming Guide

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
How to: Detect Whether a User Clicked a 3D Object

Platforms

Xbox 360, Windows XP SP2, Windows Vista