Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    UVRotate Struct

    Namespace: Stride.Particles.ShapeBuilders.Tools
    Assembly: Stride.Particles.dll

    Struct used to rotate and/or flip texture coordinates

    [DataContract("UVRotate")]
    [Display("UV Rotate", null)]
    public struct UVRotate
    Name Description
    Properties
    FlipX

    If True, the texture coordinates will be flipped horizontally prior to texture sampling.

    FlipY

    If True, the texture coordinates will be flipped vertically prior to texture sampling.

    UVClockwise

    If True, the texture coordinates will be rotated clockwise by the specified angle prior to texture sampling.

    Methods
    GetCoords(Vector2)

    Returns the rotated texture coordinates for base input texture coordinates

    | Improve this Doc View Source

    Properties


    FlipX

    If True, the texture coordinates will be flipped horizontally prior to texture sampling.

    [Display("Flip Hor", null)]
    public bool FlipX { get; set; }
    Property Value
    Type Description
    System.Boolean

    FlipY

    If True, the texture coordinates will be flipped vertically prior to texture sampling.

    [Display("Flip Ver", null)]
    public bool FlipY { get; set; }
    Property Value
    Type Description
    System.Boolean

    UVClockwise

    If True, the texture coordinates will be rotated clockwise by the specified angle prior to texture sampling.

    [Display("Clockwise", null)]
    public UVClockwiseRotation UVClockwise { get; set; }
    Property Value
    Type Description
    UVClockwiseRotation
    | Improve this Doc View Source

    Methods


    GetCoords(Vector2)

    Returns the rotated texture coordinates for base input texture coordinates

    public Vector2 GetCoords(Vector2 inVector)
    Parameters
    Type Name Description
    Vector2 inVector

    Base texture coordinates

    Returns
    Type Description
    Vector2

    Rotated and flipped coordinates


    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation