Table of Contents

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

TCoordinates

Data type for storing position coordinates of objects in the game world.

Inheritance
object
Positionable<TCoordinates>
CameraState<TCoordinates>
Implements
Derived
Inherited Members

Properties

Radius

The camera's distance from the focused position.

public double Radius { get; set; }

Property Value

double

Rotation

The horizontal rotation of the view direction in degrees.

public double Rotation { get; set; }

Property Value

double

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

from CameraState<TCoordinates>
to CameraState<TCoordinates>

See Also