Message 1 of 4
Not applicable
08-28-2015
03:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a point 'point5', 'angle' (1.04 radians) and a vector 'awayDir' which is '-Z' and I wish to create 'point8' rotated as shown
point5
|\
| \
d | \
| \
| \
point8
Here is my code:
Dim point8 As Point = point5.Copy()
point8.TranslateBy(vertticalHeightVector)
If angle > 0.0000001 Then
Dim mat As Matrix = _invApp.TransientGeometry.CreateMatrix()
mat.SetToRotation(angle, awayDir, point5)
point8.TransformBy(mat)
End IfIt is seemingly simple, but point8 remains unchanged even after TransformBy call
Am I missing anything?
Solved! Go to Solution.