new PhotoEditorSDK.Engine.TextureUVs()
sdk/engine/utils/texture-uvs.js, line 22
Creates a TextureUVs instance
Methods
-
getUVs(){Array.<PhotoEditorSDK.Math.Vector2>}
sdk/engine/utils/texture-uvs.js, line 73 -
Returns the UV coordinates
Returns:
Type Description Array.<PhotoEditorSDK.Math.Vector2> -
getUVsAt(index){PhotoEditorSDK.Math.Vector2}
sdk/engine/utils/texture-uvs.js, line 67 -
Returns the UV coordinates for the given index
Name Type Description index
Number Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
update(frame, baseFrame)
sdk/engine/utils/texture-uvs.js, line 40 -
Updates the UVs based on the given baseframe
Name Type Description frame
Rectangle baseFrame
Rectangle