AxisAngleRotation3D.Axis Property
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.
Gets or sets the axis of a 3-D rotation.
public:
property System::Windows::Media::Media3D::Vector3D Axis { System::Windows::Media::Media3D::Vector3D get(); void set(System::Windows::Media::Media3D::Vector3D value); };
public System.Windows.Media.Media3D.Vector3D Axis { get; set; }
member this.Axis : System.Windows.Media.Media3D.Vector3D with get, set
Public Property Axis As Vector3D
Property Value
Vector3D that specifies the axis of rotation.
Examples
The following code excerpt applies an AxisAngleRotation3D to a GeometryModel3D.
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D Geometry="{StaticResource myTeapot}">
<GeometryModel3D.Material>
<DiffuseMaterial>
<DiffuseMaterial.Brush>
<SolidColorBrush Color="Blue" Opacity="1.0" />
</DiffuseMaterial.Brush>
</DiffuseMaterial>
</GeometryModel3D.Material>
<GeometryModel3D.Transform>
<RotateTransform3D>
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="myAngleRotation" Axis="0,3,0" Angle="1" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
</GeometryModel3D.Transform>
</GeometryModel3D>
</ModelVisual3D.Content>
</ModelVisual3D>
Remarks
Dependency Property Information
Identifier field | AxisProperty |
Metadata properties set to true |
None |
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.