TransformRotation Method (Double, Double, Vector3d, Point3d) |
Constructs a new rotation transformation with specified angle, rotation center and rotation axis.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic static Transform Rotation(
double sinAngle,
double cosAngle,
Vector3d rotationAxis,
Point3d rotationCenter
)
Public Shared Function Rotation (
sinAngle As Double,
cosAngle As Double,
rotationAxis As Vector3d,
rotationCenter As Point3d
) As Transform
Parameters
- sinAngle
- Type: SystemDouble
Sin of the rotation angle. - cosAngle
- Type: SystemDouble
Cos of the rotation angle. - rotationAxis
- Type: Rhino.GeometryVector3d
Axis direction of rotation. - rotationCenter
- Type: Rhino.GeometryPoint3d
Center point of rotation.
Return Value
Type:
TransformA transformation matrix which rotates geometry around an anchor point.
Version InformationRhino for Mac
Supported in: 5.4
Rhino for Windows
Supported in: 6.8
See Also