Eyeshot 10 WinForms API Reference
Camera Constructor(Point3D,Double,Quaternion,projectionType,Double,Double)
Example 

WinForms Assembly > devDept.Eyeshot Namespace > Camera Class > Camera Constructor : Camera Constructor(Point3D,Double,Quaternion,projectionType,Double,Double)
Aiming point
The distance between the camera location and the aiming point
A quaternion object representing the 3D rotation
Projection mode
Focal length
Zoom factor
Standard constructor.
Syntax
'Declaration
 
Public Function New( _
   ByVal target As Point3D, _
   ByVal distance As Double, _
   ByVal rotation As Quaternion, _
   ByVal projectionMode As projectionType, _
   ByVal focalLength As Double, _
   ByVal zoomFactor As Double _
)
public Camera( 
   Point3D target,
   double distance,
   Quaternion rotation,
   projectionType projectionMode,
   double focalLength,
   double zoomFactor
)

Parameters

target
Aiming point
distance
The distance between the camera location and the aiming point
rotation
A quaternion object representing the 3D rotation
projectionMode
Projection mode
focalLength
Focal length
zoomFactor
Zoom factor
Example
The following code fragment demonstrates how to setup a perspective projection camera at 100 units of distance from the origin and with a rotation of 30 degrees about the X axis and 60 degrees about the Z axis. The default rotation coincide with the model Right view.
myViewport.Camera = new Camera(Point3D.Origin, 100, (new Quaternion(Vector3D.AxisZ, 60)) * (new Quaternion(Vector3D.AxisY, 30)), cameraProjectionType.Perspective, 50, 1);
MyViewport.Camera = New Camera(Point3D.Origin, 100, (New Quaternion(Vector3D.AxisZ, 60)) * (New Quaternion(Vector3D.AxisY, 30)), cameraProjectionType.Perspective, 50, 1)
See Also

Reference

Camera Class
Camera Members
Overload List