Class CameraState<TCoordinates>
- Namespace
- FrameOfReference.World
- Assembly
- FrameOfReference.World.dll
Stores the position and direction of the camera in the game.
public class CameraState<TCoordinates> : Positionable<TCoordinates>, ICloneable, IChangeNotify<Positionable<TCoordinates>> where TCoordinates : struct
Type Parameters
TCoordinatesData type for storing position coordinates of objects in the game world.
- Inheritance
-
objectPositionable<TCoordinates>CameraState<TCoordinates>
- Implements
-
IChangeNotify<Positionable<TCoordinates>>
- Derived
- Inherited Members
Properties
Radius
The camera's distance from the focused position.
public double Radius { get; set; }
Property Value
Rotation
The horizontal rotation of the view direction in degrees.
public double Rotation { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override Positionable<TCoordinates> Clone()
Returns
- Positionable<TCoordinates>
CloneCameraState()
Creates a deep copy of this CameraState<TCoordinates> instance.
public CameraState<TCoordinates> CloneCameraState()
Returns
- CameraState<TCoordinates>
The new copy of the CameraState<TCoordinates>.
CloneFromTo(CameraState<TCoordinates>, CameraState<TCoordinates>)
Copies all members declared by CameraState<TCoordinates> from one instance to another.
protected static void CloneFromTo(CameraState<TCoordinates> from, CameraState<TCoordinates> to)
Parameters
fromCameraState<TCoordinates>toCameraState<TCoordinates>