## SIRotation.SetFromXYZAxes

### Description

Sets this rotation from three orthonormal axes. No verification is performed about their orthonormality.

### C# Syntax

    SIRotation.SetFromXYZAxes( SIVector3 in_pXAxis, SIVector3 in_pYAxis, SIVector3 in_pZAxis );

### Scripting Syntax

    SIRotation.SetFromXYZAxes( xAxis, yAxis, zAxis );

### Parameters

Parameter | Type | Description
--- | --- | ---
xAxis | SIVector3 | unitary X axis (orthogonal to Y and Z)
yAxis | SIVector3 | unitary Y axis (orthogonal to X and Z)
zAxis | SIVector3 | unitary Z axis (orthogonal to X and Y)

### Examples

#### VBScript Example

    dim r1, vx, vy, vz
    ' Create rotation.
    set r1 = XSIMath.CreateRotation
    ' Create 3D vectors.
    set vx = XSIMath.CreateVector3(1.0, 1.0, 0.0)
    set vy = XSIMath.CreateVector3(-1.0, 1.0, 0.0)
    set vz = XSIMath.CreateVector3( 0.0, 0.0, 1.0)
    vx.Normalize vx
    vy.Normalize vy
    r1.SetFromXYZAxes vx, vy, vz

### See Also

SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion