Struct LinearMotion
Implements
System.IEquatable<LinearMotion>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct LinearMotion : IEquatable<LinearMotion>
Constructors
View SourceLinearMotion((Vector3 velocity, Vector3 acceleration, Single friction))
public LinearMotion((Vector3 velocity, Vector3 acceleration, float friction) tuple)
LinearMotion(Vector3, Vector3, Single)
public LinearMotion(Vector3 velocity, Vector3 acceleration, float friction)
Fields
View SourceAcceleration
[DataMember]
public readonly Vector3 Acceleration
Friction
[DataMember]
public readonly float Friction
MaxValue
public static LinearMotion MaxValue
MinValue
public static LinearMotion MinValue
Velocity
[DataMember]
public readonly Vector3 Velocity
Zero
public static LinearMotion Zero
Methods
View SourceAlmostEquals(LinearMotion, Single)
public readonly bool AlmostEquals(LinearMotion x, float tolerance = 1E-07F)
Create((Vector3 velocity, Vector3 acceleration, Single friction))
public static LinearMotion Create((Vector3 velocity, Vector3 acceleration, float friction) tuple)
Create(Vector3, Vector3, Single)
public static LinearMotion Create(Vector3 velocity, Vector3 acceleration, float friction)
Deconstruct(out Vector3, out Vector3, out Single)
public readonly void Deconstruct(out Vector3 velocity, out Vector3 acceleration, out float friction)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(LinearMotion)
public readonly bool Equals(LinearMotion x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
SetAcceleration(Vector3)
public readonly LinearMotion SetAcceleration(Vector3 x)
SetFriction(Single)
public readonly LinearMotion SetFriction(float x)
SetVelocity(Vector3)
public readonly LinearMotion SetVelocity(Vector3 x)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceEquality(LinearMotion, LinearMotion)
public static bool operator ==(LinearMotion x0, LinearMotion x1)
Implicit((Vector3 velocity, Vector3 acceleration, Single friction) to LinearMotion)
public static implicit operator LinearMotion((Vector3 velocity, Vector3 acceleration, float friction) tuple)
Implicit(LinearMotion to (Vector3 velocity, Vector3 acceleration, Single friction))
public static implicit operator (Vector3 velocity, Vector3 acceleration, float friction)(LinearMotion self)
Inequality(LinearMotion, LinearMotion)
public static bool operator !=(LinearMotion x0, LinearMotion x1)
Implements
System.IEquatable<T>