Class: Keypoint
Extends
BaseType
<RawObjectKeypoints
["points"
][0
]>
Constructors
new Keypoint()
new Keypoint(raw: {
index: number;
x: number;
y: number;
}): Keypoint
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
Overrides
BaseType<RawObjectKeypoints['points'][0]>.constructor
Properties
links
readonly links: KeypointLink[];
raw
readonly raw: {
index: number;
x: number;
y: number;
};
index
index: number;
x
x: number;
y
y: number;
Inherited from
BaseType.raw
Accessors
inboundLinks
get inboundLinks(): KeypointLink[]
Returns
linkedFrom
get linkedFrom(): Keypoint[]
Returns
Keypoint
[]
linkedTo
get linkedTo(): Keypoint[]
Returns
Keypoint
[]
outboundLinks
get outboundLinks(): KeypointLink[]
Returns
x
get x(): number
Returns
number
y
get y(): number
Returns
number
Methods
toJSON()
toJSON(): {
index: number;
x: number;
y: number;
}
Returns
{
index: number;
x: number;
y: number;
}
Name | Type |
---|---|
index | number |
x | number |
y | number |
Inherited from
BaseType.toJSON