Skip to main content

TransformerRotation

Enum

Rotation types used by TransformBuilder.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Index

Example

var transformer = MachineLearning.createTransformerBuilder()
.setVerticalAlignment(VerticalAlignment.Center)
.setHorizontalAlignment(HorizontalAlignment.Center)
.setRotation(TransformerRotation.Rotate180)
.setFillColor(new vec4(0, 0, 0, 1))
.build();

Enumeration Members

None

None: number

No rotation


Rotate180

Rotate180: number

Rotates by 180 degrees


Rotate270

Rotate270: number

Rotates by 270 degrees


Rotate90

Rotate90: number

Rotates by 90 degrees