70000563 I would like to have lookAt with twist

Article 70000563
Type Wish
Product Engine
Version 7006
Date Added 9/15/2015 12:00:00 AM
Fixed 7.7007.0.1 (11/17/2015 12:00:00 AM)
Submitted by Stathis Tsoumas

Summary

I would like to have lookAt with twist.

Solution

A new overload for the LookAt() method was added in vectordraw. Using this overload the user can also control the twist angle of the view. Twist angle is the rotation on the view axis, similar to tilting the camera right or left. The rotation is performed counter clock-wise.

LookAt(cameraPosition, targetPosition, twistAngle)

The function takes the following parameters
  • cameraPosition: A (gPoint) point in Current User Coordinate System (UCS) representing the position of the camera or "USER",null so the user picks this point to the screen.
  • targetPosition: A (gPoint) point in Current User Coordinate System (UCS) representing the target point or "USER",null so the user picks this point on the screen.
  • twistAngle: The angle of twist in radians.

Send comments on this topic.