📄 keyframe.cs
字号:
#region File Description
//-----------------------------------------------------------------------------
// Keyframe.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion
#region Using Statements
using System;
using Microsoft.Xna.Framework;
#endregion
namespace SkinnedModel
{
/// <summary>
/// Describes the position of a single bone at a single point in time.
/// </summary>
public class Keyframe
{
#region Fields
int boneValue;
TimeSpan timeValue;
Matrix transformValue;
#endregion
/// <summary>
/// Constructs a new keyframe object.
/// </summary>
public Keyframe(int bone, TimeSpan time, Matrix transform)
{
boneValue = bone;
timeValue = time;
transformValue = transform;
}
/// <summary>
/// Gets the index of the target bone that is animated by this keyframe.
/// </summary>
public int Bone
{
get { return boneValue; }
}
/// <summary>
/// Gets the time offset from the start of the animation to this keyframe.
/// </summary>
public TimeSpan Time
{
get { return timeValue; }
}
/// <summary>
/// Gets the bone transform for this keyframe.
/// </summary>
public Matrix Transform
{
get { return transformValue; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -