EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Struct ViewportTransformationMatrices

    Represents a set of transformation matrices for converting between world coordinates and screen coordinates, applying visual effects, and handling window and region-specific offsets.

    Implements
    IEquatable<ViewportTransformationMatrices>
    Inherited Members
    object.GetType()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: EyeAuras.OpenCVAuras.Triggers.WindowCapture
    Assembly: EyeAuras.OpenCVAuras.Shared.dll
    Syntax
    public readonly struct ViewportTransformationMatrices : IEquatable<ViewportTransformationMatrices>

    Properties

    Name Description
    ScreenToWorld

    The matrix for converting screen coordinates back to world coordinates. Use this matrix for operations such as determining the world space position of a mouse click on the screen. To convert a screen coordinate back to a world space point:

    var worldPoint = Vector2.Transform(screenPoint, ScreenToWorld);
    VisualEffects

    The matrix used for applying visual effects such as scaling, rotation, etc., to a specified window region. This matrix should be used to transform coordinates within the region after applying the WindowRegion and WindowOffset transformations. To apply visual effects to a point within the window region:

    var transformedPoint = Vector2.Transform(point, VisualEffects);
    WindowOffset

    The matrix representing the offset of a window on the screen. Use this matrix to convert coordinates from the application's local space to screen space, taking into account the position of the window. To adjust a point from application space to its position on the screen:

    var screenPosition = Vector2.Transform(point, WindowOffset);
    WindowRegion

    The matrix representing the transformation applied to a specified region within the window. This transformation should be applied to points within the region before applying WindowOffset, especially when the region does not encompass the entire window. To convert a point from region space to window space:

    var windowPosition = Vector2.Transform(point, WindowRegion);
    WorldToScreen

    The matrix for converting world coordinates to screen coordinates. This matrix encompasses the transformations required to project points from the application's world space to the physical screen space. To convert a world space point to screen coordinates:

    var screenPoint = Vector2.Transform(worldPoint, WorldToScreen);

    Methods

    Name Description
    Equals(ViewportTransformationMatrices)
    Equals(object)
    GetHashCode()
    ToString()

    Operators

    Name Description
    operator ==(ViewportTransformationMatrices, ViewportTransformationMatrices)
    operator !=(ViewportTransformationMatrices, ViewportTransformationMatrices)

    Extension Methods

    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
    ObjectExtensions.CloneJson<T>(T)
    ObjectExtensions.CopyPropertiesTo<TSource, TTarget>(TSource, TTarget)
    ObjectExtensions.DumpToTextRaw<T>(T)
    ObjectExtensions.DumpToText<T>(T)
    ObjectExtensions.Dump<T>(T)
    ObjectExtensions.GetPropertyAccessor<TSource, TValue>(TSource, Expression<Func<TSource, TValue>>)
    ObjectExtensions.InsertTo<TItem, TCollection>(TItem, IList<TCollection>, int)
    ObjectExtensions.ToJson<T>(T)
    ObjectExtensions.ToStringSafe<T>(T)
    ObjectExtensions.TransferPropertiesTo<TSource, TTarget>(TSource, TTarget, params string[])
    XDocumentExtensions.AddTo<T>(T, XContainer)
    © Xab3r. All rights reserved.