Table of Contents

Class ArcballCamera

Namespace
OmegaEngine.Graphics.Cameras
Assembly
OmegaEngine.dll

A camera that can be rotated around a specific point in space.

public sealed class ArcballCamera : MatrixCamera, IInputReceiver, IPositionable
Inheritance
ArcballCamera
Implements
Inherited Members
Extension Methods

Constructors

ArcballCamera(double, double)

A camera that can be rotated around a specific point in space.

public ArcballCamera(double minRadius = 50, double maxRadius = 100)

Parameters

minRadius double

The minimum radius allowed. Also used as the initial radius.

maxRadius double

The maximum radius allowed.

Properties

HorizontalRotation

The clockwise horizontal rotation around the target in degrees.

public double HorizontalRotation { get; set; }

Property Value

double

MaxRadius

The maximum radius allowed.

public double MaxRadius { get; set; }

Property Value

double

Remarks

Must be a positive real number.

MinRadius

The minimum radius allowed.

public double MinRadius { get; set; }

Property Value

double

Remarks

Must be a positive real number.

Radius

The distance between the camera and the center of the focuses object.

public double Radius { get; set; }

Property Value

double

Remarks

Must be a positive real number.

Roll

The clockwise roll along the view direction in degrees.

public double Roll { get; set; }

Property Value

double

VerticalRotation

The clockwise vertical rotation around the target in degrees.

public double VerticalRotation { get; set; }

Property Value

double

WorldUp

A unit vector describing the direction considered up in the world.

public DoubleVector3 WorldUp { get; set; }

Property Value

DoubleVector3

Methods

Navigate(DoubleVector3, DoubleVector3)

Called when the user changes the view perspective.

public override void Navigate(DoubleVector3 translation, DoubleVector3 rotation)

Parameters

translation DoubleVector3

Movement in screen units. X = pan right, Y = pan upwards, Z = zoom into screen

rotation DoubleVector3

Rotation in degrees. X = yaw clockwise, Y = pitch clockwise, Z = roll clockwise

UpdateView()

Update cached versions of View and related matrices.

protected override void UpdateView()