Quaternion.CreateFromAxisAngle(Vector3, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a quaternion from a unit vector and an angle to rotate around the vector.
public:
static System::Numerics::Quaternion CreateFromAxisAngle(System::Numerics::Vector3 axis, float angle);
public static System.Numerics.Quaternion CreateFromAxisAngle (System.Numerics.Vector3 axis, float angle);
static member CreateFromAxisAngle : System.Numerics.Vector3 * single -> System.Numerics.Quaternion
Public Shared Function CreateFromAxisAngle (axis As Vector3, angle As Single) As Quaternion
Parameters
- axis
- Vector3
The unit vector to rotate around.
- angle
- Single
The angle, in radians, to rotate around the vector.
Returns
The newly created quaternion.
Remarks
axis
vector must be normalized before calling this method or the resulting Quaternion will be incorrect.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.