本文整理汇总了C#中FluidKit.Controls.Motion类的典型用法代码示例。如果您正苦于以下问题:C# Motion类的具体用法?C# Motion怎么用?C# Motion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Motion类属于FluidKit.Controls命名空间,在下文中一共展示了Motion类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetBeforeMotion
protected override Motion GetBeforeMotion(int deltaIndex)
{
double aspect = Owner.ElementWidth / Owner.ElementHeight;
double ItemWidth = aspect;
double ItemHeight = 1;
int row = -1;
int column = -1;
int slot = Math.Abs(deltaIndex);
if (slot <= 2)
{
row = 0;
column = 2 - slot;
}
else
{
row = -1 - ((slot - 3) / Columns);
column = (slot - 3) % Columns;
}
Motion m = new Motion();
m.Angle = 0;
m.Axis = new Vector3D(1, 0, 0);
m.X = (column - 2) * (ItemWidth + Owner.ItemGap);
m.Y = -1 * row * (ItemHeight + Owner.ItemGap);
return m;
}
开发者ID:pusp,项目名称:o2platform,代码行数:29,代码来源:Wall.cs
示例2: GetSelectionMotion
protected override Motion GetSelectionMotion(int index)
{
var m = new Motion {
Angle = 0,
Axis = new Vector3D(0, 1, 0),
X = 0, Z = Owner.PopoutDistance
};
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:9,代码来源:VirtCoverFlow.cs
示例3: GetAfterMotion
protected override Motion GetAfterMotion(int deltaIndex)
{
Motion m = new Motion();
m.X = Owner.ItemGap * deltaIndex;
m.Z = -1 * Owner.ItemGap * deltaIndex;
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:9,代码来源:TimeMachine.cs
示例4: GetSelectionMotion
protected override Motion GetSelectionMotion()
{
Motion m = new Motion();
m.Axis = new Vector3D(0, 1, 0);
m.Z = Owner.PopoutDistance;
return m;
}
开发者ID:slytsal,项目名称:nmtmdz,代码行数:9,代码来源:VForm.cs
示例5: GetPreviousMotion
protected override Motion GetPreviousMotion(int index)
{
Motion m = new Motion();
m.X = -1*Owner.FrontItemGap;
m.Z = -1*Owner.ItemGap*(Owner.SelectedIndex - index);
return m;
}
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:9,代码来源:TimeMachine2.cs
示例6: GetAfterMotion
protected override Motion GetAfterMotion(int deltaIndex)
{
Motion m = new Motion();
m.X = -1 * Owner.FrontItemGap;
m.Z = -1 * Owner.ItemGap * deltaIndex + Owner.PopoutDistance * 2 / 3;
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:9,代码来源:TimeMachine2.cs
示例7: GetBeforeMotion
protected override Motion GetBeforeMotion(int deltaIndex)
{
Motion m = new Motion();
m.X = -1 * Owner.FrontItemGap;
m.Z = Owner.ItemGap * deltaIndex;
return m;
}
开发者ID:slytsal,项目名称:nmtmdz,代码行数:9,代码来源:TimeMachine2.cs
示例8: GetSelectionMotion
protected override Motion GetSelectionMotion()
{
Motion m = new Motion();
m.X = -1 * (Owner.ItemGap + Owner.PopoutDistance);
m.Y = Owner.ItemGap;
return m;
}
开发者ID:slytsal,项目名称:nmtmdz,代码行数:9,代码来源:RollerCoaster.cs
示例9: GetNextMotion
protected override Motion GetNextMotion(int index)
{
Motion m = new Motion();
m.X = -1*Owner.FrontItemGap;
m.Z = Owner.ItemGap*(index - Owner.SelectedIndex);
return m;
}
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:9,代码来源:TimeMachine2.cs
示例10: GetSelectionMotion
protected override Motion GetSelectionMotion(int index)
{
Motion m = new Motion();
m.Angle = 0;
m.Y = 0;
m.Z = Owner.PopoutDistance;
return m;
}
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:10,代码来源:Rolodex.cs
示例11: GetPreviousMotion
protected override Motion GetPreviousMotion(int index)
{
Motion m = new Motion();
m.Angle = Owner.TiltAngle;
m.Axis = new Vector3D(1, 0, 0);
m.Y = -1*Owner.ItemGap*(Owner.SelectedIndex - index) - Owner.FrontItemGap;
return m;
}
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:10,代码来源:Rolodex.cs
示例12: GetAfterMotion
protected override Motion GetAfterMotion(int deltaIndex)
{
Motion m = new Motion();
m.Angle = -1 * Owner.TiltAngle;
m.Axis = new Vector3D(0, 1, 0);
m.X = Owner.ItemGap * deltaIndex + Owner.FrontItemGap;
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:10,代码来源:CoverFlow.cs
示例13: GetBeforeMotion
protected override Motion GetBeforeMotion(int deltaIndex)
{
Motion m = new Motion();
m.Angle = Owner.TiltAngle;
m.Axis = new Vector3D(1, 0, 0);
m.Y = Owner.ItemGap * deltaIndex - Owner.FrontItemGap;
return m;
}
开发者ID:GroupXTech,项目名称:Yatse2,代码行数:10,代码来源:Rolodex.cs
示例14: GetNextMotion
protected override Motion GetNextMotion(int index)
{
Motion m = new Motion();
m.Angle = -1*Owner.TiltAngle;
m.Axis = new Vector3D(0, 1, 0);
m.X = Owner.ItemGap*(index - Owner.SelectedIndex) + Owner.FrontItemGap;
return m;
}
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:10,代码来源:CoverFlow.cs
示例15: GetPreviousMotion
protected override Motion GetPreviousMotion(int index)
{
Motion m = new Motion();
m.Axis = new Vector3D(0, 1, 0);
m.X = -1*(Owner.FrontItemGap + Owner.ItemGap*(Owner.SelectedIndex - index));
m.Z = -1*Owner.ItemGap*(Owner.SelectedIndex - index);
return m;
}
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:10,代码来源:VForm.cs
示例16: GetBeforeMotion
protected override Motion GetBeforeMotion(int deltaIndex)
{
Motion m = new Motion();
m.Axis = new Vector3D(0, 1, 0);
m.X = Owner.FrontItemGap + Owner.ItemGap * deltaIndex;
m.Z = Owner.ItemGap * deltaIndex;
return m;
}
开发者ID:slytsal,项目名称:nmtmdz,代码行数:10,代码来源:VForm.cs
示例17: GetSelectionMotion
protected override Motion GetSelectionMotion()
{
Motion m = new Motion();
m.Angle = -1 * 45;
m.Axis = new Vector3D(0, 0, 1);
m.X = 2 * Owner.ItemGap;
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:10,代码来源:TimeMachine.cs
示例18: GetNextMotion
protected override Motion GetNextMotion(int index)
{
var m = new Motion
{
Angle = -1*Owner.TiltAngle,
Axis = new Vector3D(0, 1, 0),
X = Owner.ItemGap*(index - Owner.GetPositionIndex(Owner.SelectedIndex)) + Owner.FrontItemGap
};
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:10,代码来源:VirtCoverFlow.cs
示例19: GetSelectionMotion
protected override Motion GetSelectionMotion()
{
Motion m = new Motion();
m.Angle = 0;
m.Axis = new Vector3D(0, 0, 1);
m.X = 0; //Owner.FrontItemGap;
m.Z = Owner.PopoutDistance;
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:11,代码来源:TimeMachine2.cs
示例20: GetSelectionMotion
protected override Motion GetSelectionMotion()
{
double angle = Math.PI/2;
Motion m = new Motion();
m.X = Radius*Math.Cos(angle);
m.Z = Owner.PopoutDistance + Radius*Math.Sin(angle);
m.Y = 0;
m.Axis = new Vector3D(0, 1, 0);
return m;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:11,代码来源:Carousel.cs
注:本文中的FluidKit.Controls.Motion类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论