CreateTransformRotation Method (IMathUtility)

CreateTransformRotation Method (IMathUtility) | Send Feedback
See Also Example

Transform[out]
  IMathTransform

CenterPoint
  IMathPoint; center point of Axis

Axis
  IMathVector

Angle
  Angle in radians of rotation about Axis

Creates a mathematical transformation matrix that represents the rotation by the specified angle about the specified axis vector whose center is the specified point.

# Syntax

Visual Basic |
--- | ---
    Function CreateTransformRotation( _
       ByVal CenterPoint As MathPoint, _
       ByVal Axis As MathVector, _
       ByVal Angle As System.Double _
    ) As MathTransform

C# |
--- | ---
    MathTransform CreateTransformRotation(
       MathPoint CenterPoint,
       MathVector Axis,
       System.double Angle
    )

JavaScript |
--- | ---
    CreateTransformRotation(
       CenterPoint : dsMathPoint,
       Axis : dsMathVector,
       Angle : Number
    ) : dsMathTransform

COM native C++ |
--- | ---
    HRESULT CreateTransformRotation(
       IMathPoint* CenterPoint,
       IMathVector* Axis,
       DOUBLE Angle,
       IMathTransform** Transform
    )

C++ |
--- | ---
    DSRESULT CreateTransformRotation(
       dsMathPoint* CenterPoint,
       dsMathVector* Axis,
       double Angle,
       dsMathTransform** Transform
    )

#### Parameters

CenterPoint
  IMathPoint; center point of Axis
Axis
  IMathVector
Angle
  Angle in radians of rotation about Axis
Transform[out] or Return Value
  IMathTransform

# Example

Rotate, Scale, Project, and Mirror a Line Entity (JavaScript)
Rotate, Scale, Project, and Mirror a Line Entity (VB.NET)
Rotate, Scale, Project, and Mirror a Line Entity (C#)
Rotate, Scale, Project, and Mirror a Line Entity (VBA)

# See Also

####

IMathUtility Interface
IMathUtility Members
IMathUtility::CreateTransform Method
IMathUtility::CreateTransformMirroringAboutLine Method
IMathUtility::CreateTransformMirroringAboutPlane Method
IMathUtility::CreateTransformMirroringAboutPoint Method
IMathUtility::CreateTransformProjection Method
IMathUtility::CreateTransformScaling Method
IMathUtility::CreateTransformTranslation Method

# Availability

DraftSight V1R1.4