.NET SDK Documentation

    Show / Hide Table of Contents

    Struct AngularVelocity

    Represents the angular velocity

    Implements
    IEquatable<AngularVelocity>
    Namespace: Anki.Vector.Types
    Assembly: Anki.Vector.dll
    Syntax
    public struct AngularVelocity : IEquatable<AngularVelocity>

    Constructors

    | Improve this Doc View Source

    AngularVelocity(Single, Single, Single)

    Initializes a new instance of the AngularVelocity struct.

    public AngularVelocity(float x, float y, float z)
    Parameters
    Type Name Description
    Single x

    The x velocity in rad/s.

    Single y

    The y velocity in rad/s.

    Single z

    The z velocity in rad/s.

    Properties

    | Improve this Doc View Source

    X

    Gets the x velocity in rad/s

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

    Y

    Gets the y velocity in rad/s

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

    Z

    Gets the z velocity in rad/s

    public float Z { get; }
    Property Type
    Single

    Methods

    | Improve this Doc View Source

    Equals(AngularVelocity)

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

    public bool Equals(AngularVelocity other)
    Parameters
    Type Name Description
    AngularVelocity 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
    ValueType.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
    ValueType.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
    ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Equality(AngularVelocity, AngularVelocity)

    Implements the operator ==.

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

    The LHS.

    AngularVelocity rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    | Improve this Doc View Source

    Inequality(AngularVelocity, AngularVelocity)

    Implements the operator !=.

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

    The LHS.

    AngularVelocity rhs

    The RHS.

    Returns
    Type Description
    Boolean

    The result of the operator.

    Implements

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