本文整理汇总了C#中IPoint3D.GetPointFromHeading方法的典型用法代码示例。如果您正苦于以下问题:C# IPoint3D.GetPointFromHeading方法的具体用法?C# IPoint3D.GetPointFromHeading怎么用?C# IPoint3D.GetPointFromHeading使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPoint3D
的用法示例。
在下文中一共展示了IPoint3D.GetPointFromHeading方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PositionOfTarget
/// <summary>
/// Calculate the target position with given height and displacement.
/// </summary>
/// <param name="x">Current object X position.</param>
/// <param name="y">Current object Y position.</param>
/// <param name="z">Current object Z position.</param>
/// <param name="height">Height the object is to be lifted to.</param>
/// <param name="heading">The direction the object is displaced in.</param>
/// <param name="displacement">The amount the object is displaced by.</param>
/// <returns></returns>
private Point3D PositionOfTarget(IPoint3D target, int height, int heading, int displacement)
{
Point3D targetPoint;
targetPoint = new Point3D(target.GetPointFromHeading((ushort)heading, displacement), target.Z + height);
return targetPoint;
}