Class: TextureUVs

PhotoEditorSDK.Engine~ TextureUVs

Represents the UV coordinates of a texture

new TextureUVs()

sdk/core/engine/utils/texture-uvs.js, line 27

Creates a TextureUVs instance

Methods

getUVs(){Array.<PhotoEditorSDK.Math.Vector2>}

sdk/core/engine/utils/texture-uvs.js, line 74

Returns the UV coordinates

Returns:
Type Description
Array.<PhotoEditorSDK.Math.Vector2>

getUVsAt(index){PhotoEditorSDK.Math.Vector2}

sdk/core/engine/utils/texture-uvs.js, line 68

Returns the UV coordinates for the given index

Name Type Description
index Number
Returns:
Type Description
PhotoEditorSDK.Math.Vector2

update(frame, baseFrame)

sdk/core/engine/utils/texture-uvs.js, line 41

Updates the UVs based on the given baseframe

Name Type Description
frame Rectangle
baseFrame Rectangle