本文整理汇总了C#中Plane.planePerpendicular方法的典型用法代码示例。如果您正苦于以下问题:C# Plane.planePerpendicular方法的具体用法?C# Plane.planePerpendicular怎么用?C# Plane.planePerpendicular使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plane
的用法示例。
在下文中一共展示了Plane.planePerpendicular方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: s1l
public static double s1l(Skeleton first)
{
Joint shl = first.Joints[JointType.ShoulderLeft];
Joint sp = first.Joints[JointType.Spine];
Joint shr = first.Joints[JointType.ShoulderRight];
Joint ell = first.Joints[JointType.ElbowLeft];
Plane p = new Plane(shl, sp, shr);
Direction per = p.planePerpendicular();
Direction D = new Direction(shl, ell);
return Mathematics.angleBetweenLines(D, per);
}
示例2: angleBetweenLinesAndPlanes2pi
public static double angleBetweenLinesAndPlanes2pi(Plane p, Direction d)
{
Direction per = p.planePerpendicular();
double sangle = angleBetweenLines2pi(per, d);
return (sangle + 3 * Math.PI / 2) % (2 * Math.PI);
}
示例3: angleBetweenPlanes
public static double angleBetweenPlanes(Plane a, Plane b)
{
return angleBetweenLines(a.planePerpendicular(), b.planePerpendicular());
}
示例4: angleBetweenLinesAndPlanes2pi
public static double angleBetweenLinesAndPlanes2pi(Plane p, Direction d, Direction vertical)
{
Direction per = p.planePerpendicular();
double sangle = angleBetweenLines2pi(per, d, vertical);
return (-sangle + 5 * Math.PI / 2) % (2 * Math.PI); // 90 - sangle
}
开发者ID:aayushssinghal,项目名称:Kinect_Controlled_Robotic_Arm_group10_cs308_2012,代码行数:6,代码来源:Mathematics.cs