Gorgon
Show / Hide Table of Contents

Class GorgonKeyRectangle

An animation key frame for a SharpDX RectangleF value.

Inheritance
object
GorgonKeyRectangle
Implements
IGorgonKeyFrame
IGorgonCloneable<IGorgonKeyFrame>
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Animation
Assembly: Gorgon.Animation.dll
Syntax
public class GorgonKeyRectangle : IGorgonKeyFrame, IGorgonCloneable<IGorgonKeyFrame>
Remarks

A key frame represents a value for an object property at a given time.

The track that the key frame is on is used to interpolate the value between key frames. This method makes it so that only a few key frames are required for an animation rather then setting a value for every time index.

Constructors

| Edit this page View Source

GorgonKeyRectangle(GorgonKeyRectangle)

Initializes a new instance of the GorgonKeyRectangle class.

Declaration
public GorgonKeyRectangle(GorgonKeyRectangle key)
Parameters
Type Name Description
GorgonKeyRectangle key

The key to copy.

Exceptions
Type Condition
ArgumentNullException

Thrown when the key parameter is null.

See Also
IGorgonAnimationTrack<T>
| Edit this page View Source

GorgonKeyRectangle(float, RectangleF)

Initializes a new instance of the GorgonKeyRectangle class.

Declaration
public GorgonKeyRectangle(float time, RectangleF value)
Parameters
Type Name Description
float time

The time.

RectangleF value

The value.

See Also
IGorgonAnimationTrack<T>
| Edit this page View Source

GorgonKeyRectangle(float, Size2F)

Initializes a new instance of the GorgonKeyRectangle class.

Declaration
public GorgonKeyRectangle(float time, Size2F value)
Parameters
Type Name Description
float time

The time.

Size2F value

The value.

See Also
IGorgonAnimationTrack<T>

Properties

| Edit this page View Source

DataType

Property to return the type of data for this key frame.

Declaration
public Type DataType { get; }
Property Value
Type Description
Type
See Also
IGorgonAnimationTrack<T>
| Edit this page View Source

Time

Property to return the time for the key frame in the animation.

Declaration
public float Time { get; }
Property Value
Type Description
float
See Also
IGorgonAnimationTrack<T>
| Edit this page View Source

Value

Property to return the value for the key frame.

Declaration
public ref RectangleF Value { get; }
Property Value
Type Description
RectangleF
See Also
IGorgonAnimationTrack<T>

Methods

| Edit this page View Source

Clone()

Function to clone an object.

Declaration
public IGorgonKeyFrame Clone()
Returns
Type Description
IGorgonKeyFrame

The cloned object.

See Also
IGorgonAnimationTrack<T>

Implements

IGorgonKeyFrame
IGorgonCloneable<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)

See Also

IGorgonAnimationTrack<T>
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author