Tanoda
Arm.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9namespace Leap {
10 using System;
11
15 [Serializable]
16 public class Arm : Bone, IEquatable<Arm> {
17
24 public Arm() : base() { }
25
30 public Arm(Vector elbow,
31 Vector wrist,
32 Vector center,
33 Vector direction,
34 float length,
35 float width,
36 LeapQuaternion rotation)
37 : base(elbow,
38 wrist,
39 center,
40 direction,
41 length,
42 width,
43 BoneType.TYPE_METACARPAL, //ignored for arms
44 rotation) { }
45
52 public bool Equals(Arm other) {
53 return Equals(other as Bone);
54 }
55
60 public override string ToString() {
61 return "Arm";
62 }
63
72 get {
73 return base.PrevJoint;
74 }
75 }
76
87 get {
88 return base.NextJoint;
89 }
90 }
91 }
92}
The Arm class represents the forearm.
Definition: Arm.cs:16
override string ToString()
A string containing a brief, human readable description of the Arm object.
Definition: Arm.cs:60
Vector WristPosition
The position of the wrist.
Definition: Arm.cs:86
Vector ElbowPosition
The position of the elbow. If not in view, the elbow position is estimated based on typical human ana...
Definition: Arm.cs:71
Arm(Vector elbow, Vector wrist, Vector center, Vector direction, float length, float width, LeapQuaternion rotation)
Constructs a new Arm object.
Definition: Arm.cs:30
Arm()
Constructs a default Arm object. Get valid Arm objects from a Hand object.
Definition: Arm.cs:24
bool Equals(Arm other)
Compare Arm object equality. Two Arm objects are equal if and only if both Arm objects represent the ...
Definition: Arm.cs:52
The Bone class represents a tracked bone.
Definition: Bone.cs:26
BoneType
Enumerates the type of bones.
Definition: Bone.cs:168
The LeapQuaternion struct represents a rotation in three-dimensional space.
The Vector struct represents a three-component mathematical vector or point such as a direction or po...
Definition: Vector.cs:36