Class TransitionCameraOptions
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
Options controlling a camera transition.
public record TransitionCameraOptions : AnimationOptions, IEquatable<AnimationOptions>, IEquatable<TransitionCameraOptions>
- Inheritance
-
objectTransitionCameraOptions
- Implements
- Inherited Members
Constructors
TransitionCameraOptions(TransitionCameraOptions)
protected TransitionCameraOptions(TransitionCameraOptions original)
Parameters
originalTransitionCameraOptions
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
DurationTimeSpanThe duration of the complete transition.
EasingFunctionEasingFunctionThe kind of easing function to use.
EaseInboolWhether the transition should be eased in. I.e., start slowly and then speed up.
EaseOutboolWhether the transition should be eased out. I.e., slow down at the end.
RotationBiasdoubleThe 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
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
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
DurationTimeSpanEasingFunctionEasingFunctionEaseInboolEaseOutboolRotationBiasdouble
Equals(AnimationOptions?)
public override sealed bool Equals(AnimationOptions? other)
Parameters
otherAnimationOptions
Returns
Equals(TransitionCameraOptions?)
public virtual bool Equals(TransitionCameraOptions? other)
Parameters
otherTransitionCameraOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TransitionCameraOptions?, TransitionCameraOptions?)
public static bool operator ==(TransitionCameraOptions? left, TransitionCameraOptions? right)
Parameters
leftTransitionCameraOptionsrightTransitionCameraOptions
Returns
operator !=(TransitionCameraOptions?, TransitionCameraOptions?)
public static bool operator !=(TransitionCameraOptions? left, TransitionCameraOptions? right)
Parameters
leftTransitionCameraOptionsrightTransitionCameraOptions