Table of Contents

Class TransitionCameraOptions

Namespace
OmegaEngine.Graphics.Cameras
Assembly
OmegaEngine.dll

Options controlling a camera transition.

public record TransitionCameraOptions : AnimationOptions, IEquatable<AnimationOptions>, IEquatable<TransitionCameraOptions>
Inheritance
object
TransitionCameraOptions
Implements
Inherited Members

Constructors

TransitionCameraOptions(TransitionCameraOptions)

protected TransitionCameraOptions(TransitionCameraOptions original)

Parameters

original TransitionCameraOptions

TransitionCameraOptions(TimeSpan, EasingFunction, bool, bool, double)

Options controlling a camera transition.

public TransitionCameraOptions(TimeSpan Duration, EasingFunction EasingFunction = EasingFunction.Sinusoidal, bool EaseIn = true, bool EaseOut = true, double RotationBias = 1)

Parameters

Duration TimeSpan

The duration of the complete transition.

EasingFunction EasingFunction

The kind of easing function to use.

EaseIn bool

Whether the transition should be eased in. I.e., start slowly and then speed up.

EaseOut bool

Whether the transition should be eased out. I.e., slow down at the end.

RotationBias double

The fraction of the transition time after which the rotation should be complete. Value is clamped between 0 and 1.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

RotationBias

The fraction of the transition time after which the rotation should be complete. Value is clamped between 0 and 1.

public double RotationBias { get; init; }

Property Value

double

Methods

Deconstruct(out TimeSpan, out EasingFunction, out bool, out bool, out double)

public void Deconstruct(out TimeSpan Duration, out EasingFunction EasingFunction, out bool EaseIn, out bool EaseOut, out double RotationBias)

Parameters

Duration TimeSpan
EasingFunction EasingFunction
EaseIn bool
EaseOut bool
RotationBias double

Equals(AnimationOptions?)

public override sealed bool Equals(AnimationOptions? other)

Parameters

other AnimationOptions

Returns

bool

Equals(TransitionCameraOptions?)

public virtual bool Equals(TransitionCameraOptions? other)

Parameters

other TransitionCameraOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TransitionCameraOptions?, TransitionCameraOptions?)

public static bool operator ==(TransitionCameraOptions? left, TransitionCameraOptions? right)

Parameters

left TransitionCameraOptions
right TransitionCameraOptions

Returns

bool

operator !=(TransitionCameraOptions?, TransitionCameraOptions?)

public static bool operator !=(TransitionCameraOptions? left, TransitionCameraOptions? right)

Parameters

left TransitionCameraOptions
right TransitionCameraOptions

Returns

bool