|
CameraUtils Methods |
The CameraUtils type exposes the following members.
Methods | Name | Description |
---|
| CalculateCameraAngles(Vector3, CoordinateSystems, Single, Single) |
Calculates heading and attitude angles in degrees from lookDirection as Vector3.
|
| CalculateCameraAngles(Vector3, Vector3, CoordinateSystems, Single, Single, Single) |
Calculates heading, attitude and bank angles in degrees from lookDirection and upDirection as Vector3.
|
| CalculateCameraAnglesInRadians |
Calculates heading and attitude angles in radians from lookDirection as Vector3.
|
| 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.
|
| GetCoordinateSystemInvertedTransformMatrix |
Gets the inverted view transformation matrix for the specified coordinate system type.
|
| GetCoordinateSystemTransformMatrix |
Gets the view transformation matrix for the specified coordinate system type.
|
| GetIntoTheScreenVector |
Gets the vector that points into the screen (forward) for the specified coordinate system type.
|
| GetOrthographicScreenSize |
GetOrthographicScreenSize calculates a size on screen (in same units as viewSize - without DPI scale)
of a size in 3D space (worldSize) that is shown with orthographic camera with cameraWidth and in SceneView with viewSize.
|
| 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 SceneView with viewSize.
|
| GetPerspectiveScreenSize |
GetPerspectiveScreenSize calculates a size on screen (in same units as viewSize - without DPI scale)
of a size in 3D space (worldSize) that is at lookDirectionDistance and shown with perspective camera with fieldOfView and in SceneView with viewSize.
|
| 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 SceneView with viewSize.
|
| GetRightDirectionVector |
Gets the right direction vector for the specified coordinate system type.
|
| GetUpVector |
Gets the up vector for the specified coordinate system type.
|
| 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(Single) 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(Single) method.
|
| StrafeCamera |
Returns a move vector that would strafe the camera - moves it in the direction perpendicular to the camera's LookDirection and UpDirection.
|
| StrafeCameraOnHorizontalPlane |
Returns a move vector that would strafe the camera on the horizontal plane - moves it in the direction perpendicular to the camera's LookDirection and UpDirection.
|
TopSee Also