Show / Hide Table of Contents

Struct Rotation2d

Implements
IEquatable<Rotation2d>
IComparable<Rotation2d>
Inherited Members
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: WPILib.Geometry
Assembly: WPILibSharp.dll
Syntax
public struct Rotation2d : IEquatable<Rotation2d>, IComparable<Rotation2d>

Constructors

| Improve this Doc View Source

Rotation2d(Double, Double)

Declaration
public Rotation2d(double x, double y)
Parameters
Type Name Description
Double x
Double y
| Improve this Doc View Source

Rotation2d(Angle)

Declaration
public Rotation2d(Angle value)
Parameters
Type Name Description
UnitsNet.Angle value

Properties

| Improve this Doc View Source

Angle

Declaration
public Angle Angle { get; }
Property Value
Type Description
UnitsNet.Angle
| Improve this Doc View Source

Cos

Declaration
public double Cos { get; }
Property Value
Type Description
Double
| Improve this Doc View Source

Sin

Declaration
public double Sin { get; }
Property Value
Type Description
Double
| Improve this Doc View Source

Tan

Declaration
public double Tan { get; }
Property Value
Type Description
Double

Methods

| Improve this Doc View Source

CompareTo(Rotation2d)

Declaration
public int CompareTo(Rotation2d other)
Parameters
Type Name Description
Rotation2d other
Returns
Type Description
Int32
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
ValueType.Equals(Object)
| Improve this Doc View Source

Equals(Rotation2d)

Declaration
public bool Equals(Rotation2d other)
Parameters
Type Name Description
Rotation2d other
Returns
Type Description
Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
ValueType.GetHashCode()
| Improve this Doc View Source

RotateBy(Rotation2d)

Declaration
public Rotation2d RotateBy(in Rotation2d other)
Parameters
Type Name Description
Rotation2d other
Returns
Type Description
Rotation2d

Operators

| Improve this Doc View Source

Addition(Rotation2d, Rotation2d)

Declaration
public static Rotation2d operator +(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Rotation2d
| Improve this Doc View Source

Equality(Rotation2d, Rotation2d)

Declaration
public static bool operator ==(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Boolean
| Improve this Doc View Source

GreaterThan(Rotation2d, Rotation2d)

Declaration
public static bool operator>(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Boolean
| Improve this Doc View Source

GreaterThanOrEqual(Rotation2d, Rotation2d)

Declaration
public static bool operator >=(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Boolean
| Improve this Doc View Source

Inequality(Rotation2d, Rotation2d)

Declaration
public static bool operator !=(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Boolean
| Improve this Doc View Source

LessThan(Rotation2d, Rotation2d)

Declaration
public static bool operator <(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Boolean
| Improve this Doc View Source

LessThanOrEqual(Rotation2d, Rotation2d)

Declaration
public static bool operator <=(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Boolean
| Improve this Doc View Source

Multiply(Rotation2d, Double)

Declaration
public static Rotation2d operator *(in Rotation2d value, double scalar)
Parameters
Type Name Description
Rotation2d value
Double scalar
Returns
Type Description
Rotation2d
| Improve this Doc View Source

Subtraction(Rotation2d, Rotation2d)

Declaration
public static Rotation2d operator -(in Rotation2d left, in Rotation2d right)
Parameters
Type Name Description
Rotation2d left
Rotation2d right
Returns
Type Description
Rotation2d
| Improve this Doc View Source

UnaryNegation(Rotation2d)

Declaration
public static Rotation2d operator -(in Rotation2d left)
Parameters
Type Name Description
Rotation2d left
Returns
Type Description
Rotation2d

Implements

IEquatable<T>
IComparable<T>
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 RobotDotNet