XRHand
Hierarchy
- Map<XRHandJoint, XRJointSpace>
- XRHand
Implements
Implemented by
Index
Constructors
Properties
Methods
Properties
Readonly
WRIST
Readonly
THUMB_ METACARPAL
Readonly
THUMB_ PHALANX_ PROXIMAL
Readonly
THUMB_ PHALANX_ DISTAL
Readonly
THUMB_ PHALANX_ TIP
Readonly
INDEX_ METACARPAL
Readonly
INDEX_ PHALANX_ PROXIMAL
Readonly
INDEX_ PHALANX_ INTERMEDIATE
Readonly
INDEX_ PHALANX_ DISTAL
Readonly
INDEX_ PHALANX_ TIP
Readonly
MIDDLE_ METACARPAL
Readonly
MIDDLE_ PHALANX_ PROXIMAL
Readonly
MIDDLE_ PHALANX_ INTERMEDIATE
Readonly
MIDDLE_ PHALANX_ DISTAL
Readonly
MIDDLE_ PHALANX_ TIP
Readonly
RING_ METACARPAL
Readonly
RING_ PHALANX_ PROXIMAL
Readonly
RING_ PHALANX_ INTERMEDIATE
Readonly
RING_ PHALANX_ DISTAL
Readonly
RING_ PHALANX_ TIP
Readonly
LITTLE_ METACARPAL
Readonly
LITTLE_ PHALANX_ PROXIMAL
Readonly
LITTLE_ PHALANX_ INTERMEDIATE
Readonly
LITTLE_ PHALANX_ DISTAL
Readonly
LITTLE_ PHALANX_ TIP
Readonly
size
Readonly
[to String Tag]
Methods
clear
clear(): void
Returns void
delete
delete(key: XRHandJoint): boolean
Parameters
key: XRHandJoint
Returns boolean
true if an element in the Map existed and has been removed, or false if the element does not exist.
for Each
forEach(
callbackfn: (
value: XRJointSpace,
key: XRHandJoint,
map: Map<XRHandJoint, XRJointSpace>,
) => void,
thisArg?: any,
): void
Executes a provided function once per each key/value pair in the Map, in insertion order.
Parameters
callbackfn: (
value: XRJointSpace,
key: XRHandJoint,
map: Map<XRHandJoint, XRJointSpace>,
) => voidOptional
thisArg: any
Returns void
get
get(key: XRHandJoint): undefined | XRJointSpace
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Parameters
key: XRHandJoint
Returns undefined | XRJointSpace
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
has
has(key: XRHandJoint): boolean
Parameters
key: XRHandJoint
Returns boolean
boolean indicating whether an element with the specified key exists or not.
set
set(key: XRHandJoint, value: XRJointSpace): this
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Parameters
key: XRHandJoint
value: XRJointSpace
Returns this
[iterator]
"[iterator]"(): MapIterator<[XRHandJoint, XRJointSpace]>
Returns an iterable of entries in the map.
Returns MapIterator<[XRHandJoint, XRJointSpace]>
entries
entries(): MapIterator<[XRHandJoint, XRJointSpace]>
Returns an iterable of key, value pairs for every entry in the map.
Returns MapIterator<[XRHandJoint, XRJointSpace]>
keys
keys(): MapIterator<XRHandJoint>
Returns an iterable of keys in the map
Returns MapIterator<XRHandJoint>
values
values(): MapIterator<XRJointSpace>
Returns an iterable of values in the map
Returns
the number of elements in the Map.