ModelHandle/source/model/meshinstanceid.js
2021-10-24 21:22:14 +02:00

19 lines
357 B
JavaScript

OV.MeshInstanceId = class
{
constructor (nodeId, meshIndex)
{
this.nodeId = nodeId;
this.meshIndex = meshIndex;
}
IsEqual (rhs)
{
return this.nodeId === rhs.nodeId && this.meshIndex === rhs.meshIndex;
}
GetKey ()
{
return this.nodeId.toString () + ':' + this.meshIndex.toString ();
}
};