Skip to main content

Class: Keypoint

Extends

  • BaseType<RawObjectKeypoints["points"][0]>

Constructors

new Keypoint()

new Keypoint(raw: {
index: number;
x: number;
y: number;
}): Keypoint

Parameters

ParameterType

raw

object

raw.index

number

raw.x

number

raw.y

number

Returns

Keypoint

Overrides

BaseType<RawObjectKeypoints['points'][0]>.constructor

Properties

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

get inboundLinks(): KeypointLink[]

Returns

KeypointLink[]


linkedFrom

get linkedFrom(): Keypoint[]

Returns

Keypoint[]


linkedTo

get linkedTo(): Keypoint[]

Returns

Keypoint[]


get outboundLinks(): KeypointLink[]

Returns

KeypointLink[]


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;
}
NameType
indexnumber
xnumber
ynumber

Inherited from

BaseType.toJSON