XRHand
Hierarchy
- Map<XRHandJoint, XRJointSpace>
- XRHand
Implements
Implemented by
Index
Constructors
Properties
Methods
Properties
ReadonlyWRIST
ReadonlyTHUMB_ METACARPAL
ReadonlyTHUMB_ PHALANX_ PROXIMAL
ReadonlyTHUMB_ PHALANX_ DISTAL
ReadonlyTHUMB_ PHALANX_ TIP
ReadonlyINDEX_ METACARPAL
ReadonlyINDEX_ PHALANX_ PROXIMAL
ReadonlyINDEX_ PHALANX_ INTERMEDIATE
ReadonlyINDEX_ PHALANX_ DISTAL
ReadonlyINDEX_ PHALANX_ TIP
ReadonlyMIDDLE_ METACARPAL
ReadonlyMIDDLE_ PHALANX_ PROXIMAL
ReadonlyMIDDLE_ PHALANX_ INTERMEDIATE
ReadonlyMIDDLE_ PHALANX_ DISTAL
ReadonlyMIDDLE_ PHALANX_ TIP
ReadonlyRING_ METACARPAL
ReadonlyRING_ PHALANX_ PROXIMAL
ReadonlyRING_ PHALANX_ INTERMEDIATE
ReadonlyRING_ PHALANX_ DISTAL
ReadonlyRING_ PHALANX_ TIP
ReadonlyLITTLE_ METACARPAL
ReadonlyLITTLE_ PHALANX_ PROXIMAL
ReadonlyLITTLE_ PHALANX_ INTERMEDIATE
ReadonlyLITTLE_ PHALANX_ DISTAL
ReadonlyLITTLE_ PHALANX_ TIP
Readonlysize
Readonly[to String Tag]
Methods
clear
clear(): voidReturns void
delete
delete(key: XRHandJoint): booleanParameters
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,
): voidExecutes 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>,
) => voidOptionalthisArg: any
Returns void
get
get(key: XRHandJoint): undefined | XRJointSpaceReturns 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): booleanParameters
key: XRHandJoint
Returns boolean
boolean indicating whether an element with the specified key exists or not.
set
set(key: XRHandJoint, value: XRJointSpace): thisAdds 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: XRHandJointvalue: 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.