.NET SDK Documentation

    Show / Hide Table of Contents

    Class ImageRect

    Image coordinates and size

    Inheritance
    Object
    ImageRect
    Implements
    IEquatable<ImageRect>
    Namespace: Anki.Vector.Types
    Assembly: Anki.Vector.dll
    Syntax
    public class ImageRect : IEquatable<ImageRect>

    Properties

    | Improve this Doc View Source

    Height

    Gets the height of the object from when it was last visible within Vector’s camera view.

    public float Height { get; }
    Property Type
    Single
    | Improve this Doc View Source

    Width

    Gets the width of the object from when it was last visible within Vector’s camera view..

    public float Width { get; }
    Property Type
    Single
    | Improve this Doc View Source

    X

    Gets the top left x value of where the object was last visible within Vector’s camera view.

    public float X { get; }
    Property Type
    Single
    | Improve this Doc View Source

    Y

    Gets the top left y value of where the object was last visible within Vector’s camera view..

    public float Y { get; }
    Property Type
    Single

    Methods

    | Improve this Doc View Source

    Equals(ImageRect)

    Indicates whether the current object is equal to another object of the same type.

    public bool Equals(ImageRect other)
    Parameters
    Type Name Description
    ImageRect other

    An object to compare with this object.

    Returns
    Type Description
    Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Determines whether the specified Object, is equal to this instance.

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to compare with this instance.

    Returns
    Type Description
    Boolean

    true if the specified Object is equal to this instance; otherwise, false.

    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Returns a hash code for this instance.

    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    Object.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Converts to string.

    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    Object.ToString()

    Operators

    | Improve this Doc View Source

    Equality(ImageRect, ImageRect)

    Implements the operator ==.

    public static bool operator ==(ImageRect lhs, ImageRect rhs)
    Parameters
    Type Name Description
    ImageRect lhs

    The LHS.

    ImageRect rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    | Improve this Doc View Source

    Inequality(ImageRect, ImageRect)

    Implements the operator !=.

    public static bool operator !=(ImageRect lhs, ImageRect rhs)
    Parameters
    Type Name Description
    ImageRect lhs

    The LHS.

    ImageRect rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    Implements

    System.IEquatable<T>

    See Also

    IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 by Wayne Venables