|
CameraUtils Class |
CameraUtils class contains some helper methods to work with Ab3d.Cameras.
Inheritance Hierarchy Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static class CameraUtils
The CameraUtils type exposes the following members.
Methods | Name | Description |
---|
| CalculateCameraAngles(Vector3D, Double, Double) |
Calculates heading and attitude angles in degrees from lookDirection as Vector3D.
|
| CalculateCameraAngles(Vector3D, Vector3D, Double, Double, Double) |
Calculates heading, attitude and bank angles in degrees from lookDirection and upDirection as Vector3D.
|
| CalculateCameraAnglesInRadians(Vector3D, Double, Double) |
Calculates heading and attitude angles in radians from lookDirection as Vector3D.
|
| CalculateCameraAnglesInRadians(Vector3D, Vector3D, Double, Double, Double) |
Calculates heading, attitude and bank angles in radians from lookDirection and upDirection as Vector3D.
|
| CalculateCameraDirections |
Returns the lookDirection and upDirection from the specified heading, attitude and bank (angles in degrees).
|
| CalculateUpDirection |
Calculates the up direction vector from look direction vector.
|
| GetClosestPathStartAngle |
Returns an adjusted start angle so that the path to the end angle will be the shortest.
|
| GetOrthographicScreenSize |
GetOrthographicScreenSize calculates a size on screen (in same units as size of Viewport3D.Width - without DPI scale)
of a Size in 3D space (worldSize) that is shown with orthographic camera with cameraWidth and in Viewport3D with viewport3DSize.
|
| GetOrthographicWorldSize |
GetOrthographicWorldSize calculates a size in 3D world from
a screen Size (screenSize in screen coordinates) that is at distanceFromCamera and shown with orthographic camera with cameraWidth and in Viewport3D with viewport3DSize.
|
| GetPerspectiveScreenSize |
GetPerspectiveScreenSize calculates a size on screen (in same units as size of Viewport3D.Width - without DPI scale)
of a Size in 3D space (worldSize) that is at lookDirectionDistance and shown with perspective camera with fieldOfView and in Viewport3D with viewport3DSize.
|
| GetPerspectiveWorldSize |
GetPerspectiveWorldSize calculates a size in 3D world from
a screen Size (screenSize in screen coordinates) that is at lookDirectionDistance and shown with perspective camera with fieldOfView and in Viewport3D with viewport3DSize.
|
| IsClockwiseRotation |
Returns true if the shortest direction from startAngle to endAngle is in clockwise direction.
The angles are specified in degrees.
|
| NormalizeAngleTo180 |
Returns an angle that is normalized so that it is always in range from -180 to 180 degrees.
For example 270 is converted into -90; -200 is converted into 160.
To get an angle in range from 0 to 360, use the NormalizeAngleTo360(Double) method.
|
| NormalizeAngleTo360 |
Returns an angle that is normalized so that it is always in range from 0 to 360 degrees.
For example -90 is converted into 270; 400 is converted into 40.
To get an angle in range from -180 to 180, use the NormalizeAngleTo180(Double) method.
|
TopSee Also