Camera(Point3D, Double, Quaternion, projectionType, Double, Double, Boolean) Constructor
Public Sub 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, _
ByVal anaglyphic3D As Boolean _
)
This language is not supported or no code example is available.
Parameters
- target
- Point3D
Aiming point
- distance
- double
The distance between the camera location and the aiming point
- rotation
- Quaternion
A quaternion object representing the 3D rotation
- projectionMode
- projectionType
Projection mode
- focalLength
- double
Focal length
- zoomFactor
- double
Zoom factor
- anaglyphic3D
- bool
If true enables the anaglyph 3D visualization
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);
This language is not supported or no code example is available.