Table of Contents

Struct AccelerationVector3

Namespace
Thunder.UnitsNET.Vectors
Assembly
Thunder.UnitsNET.Vectors.dll

A 3D vector whose components represent acceleration, each expressed as a UnitsNet.Acceleration.

public readonly record struct AccelerationVector3 : IEquatable<AccelerationVector3>
Implements
Inherited Members
Extension Methods

Constructors

AccelerationVector3(Acceleration, Acceleration, Acceleration)

Constructs a AccelerationVector3 from three UnitsNet.Acceleration components.

public AccelerationVector3(Acceleration x, Acceleration y, Acceleration z)

Parameters

x Acceleration

The X component.

y Acceleration

The Y component.

z Acceleration

The Z component.

Properties

Magnitude

Returns the Euclidean magnitude of this vector as a UnitsNet.Acceleration. The result is expressed in the same unit as the X component.

public Acceleration Magnitude { get; }

Property Value

Acceleration

X

The X component.

public Acceleration X { get; }

Property Value

Acceleration

Y

The Y component.

public Acceleration Y { get; }

Property Value

Acceleration

Z

The Z component.

public Acceleration Z { get; }

Property Value

Acceleration

Zero

A AccelerationVector3 with all components set to zero.

public static AccelerationVector3 Zero { get; }

Property Value

AccelerationVector3

Methods

Abs()

Returns a vector with each component replaced by its absolute value.

public AccelerationVector3 Abs()

Returns

AccelerationVector3

A AccelerationVector3 with non-negative components.

Add(AccelerationVector3)

Adds two vectors component-wise.

public AccelerationVector3 Add(AccelerationVector3 other)

Parameters

other AccelerationVector3

The vector to add.

Returns

AccelerationVector3

The component-wise sum.

ApproximatelyEquals(AccelerationVector3, Acceleration)

Returns true if each component of this vector is within tolerance of the corresponding component of other.

public bool ApproximatelyEquals(AccelerationVector3 other, Acceleration tolerance)

Parameters

other AccelerationVector3

The vector to compare against.

tolerance Acceleration

The maximum allowed difference per component (inclusive).

Returns

bool

true when |X - other.X| <= tolerance, |Y - other.Y| <= tolerance, and |Z - other.Z| <= tolerance.

As(AccelerationUnit)

Projects all three components into the requested unit, returning a unit-less DoubleVector3.

public DoubleVector3 As(AccelerationUnit unit)

Parameters

unit AccelerationUnit

The target unit for each component.

Returns

DoubleVector3

A DoubleVector3 with components expressed in unit.

AsDefault()

Returns all three components expressed in the SI base unit as a DoubleVector3.

public DoubleVector3 AsDefault()

Returns

DoubleVector3

A DoubleVector3 with components in the default SI unit.

Clamp(AccelerationVector3, AccelerationVector3)

Returns a vector with each component clamped to the range [min, max].

public AccelerationVector3 Clamp(AccelerationVector3 min, AccelerationVector3 max)

Parameters

min AccelerationVector3

The lower bound vector (inclusive, per component).

max AccelerationVector3

The upper bound vector (inclusive, per component).

Returns

AccelerationVector3

A AccelerationVector3 with each component in [min, max].

Divide(double)

Divides the vector by a scalar divisor.

public AccelerationVector3 Divide(double scalar)

Parameters

scalar double

The scalar divisor.

Returns

AccelerationVector3

The divided vector.

Equals(AccelerationVector3)

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

public bool Equals(AccelerationVector3 other)

Parameters

other AccelerationVector3

An object to compare with this object.

Returns

bool

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

FromCentimetersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromCentimetersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromCentimetersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromDecimetersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromDecimetersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromDecimetersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromFeetPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromFeetPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromFeetPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromInchesPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromInchesPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromInchesPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromKilometersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromKilometersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromKilometersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromKnotsPerHour(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromKnotsPerHour(UnitsNet.QuantityValue).

public static AccelerationVector3 FromKnotsPerHour(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromKnotsPerMinute(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromKnotsPerMinute(UnitsNet.QuantityValue).

public static AccelerationVector3 FromKnotsPerMinute(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromKnotsPerSecond(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromKnotsPerSecond(UnitsNet.QuantityValue).

public static AccelerationVector3 FromKnotsPerSecond(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromMetersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromMetersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromMetersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromMicrometersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromMicrometersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromMicrometersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromMillimetersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromMillimetersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromMillimetersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromMillistandardGravity(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromMillistandardGravity(UnitsNet.QuantityValue).

public static AccelerationVector3 FromMillistandardGravity(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromNanometersPerSecondSquared(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromNanometersPerSecondSquared(UnitsNet.QuantityValue).

public static AccelerationVector3 FromNanometersPerSecondSquared(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

FromStandardGravity(double, double, double)

Creates a AccelerationVector3 with all components created via UnitsNet.Acceleration.FromStandardGravity(UnitsNet.QuantityValue).

public static AccelerationVector3 FromStandardGravity(double x, double y, double z)

Parameters

x double

The X component value.

y double

The Y component value.

z double

The Z component value.

Returns

AccelerationVector3

A AccelerationVector3 with all components in the corresponding unit.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Lerp(AccelerationVector3, AccelerationVector3, double)

Linearly interpolates between two vectors.

The result at t = 0 is a; at t = 1 it is b. Values of t outside [0, 1] extrapolate beyond the endpoints — use LerpClamped(AccelerationVector3, AccelerationVector3, double) if you need the result bounded to the segment between a and b.

public static AccelerationVector3 Lerp(AccelerationVector3 a, AccelerationVector3 b, double t)

Parameters

a AccelerationVector3

The start vector (t = 0).

b AccelerationVector3

The end vector (t = 1).

t double

The interpolation parameter. Values outside [0, 1] extrapolate.

Returns

AccelerationVector3

The interpolated AccelerationVector3.

LerpClamped(AccelerationVector3, AccelerationVector3, double)

Linearly interpolates between two vectors, with t clamped to [0, 1].

public static AccelerationVector3 LerpClamped(AccelerationVector3 a, AccelerationVector3 b, double t)

Parameters

a AccelerationVector3

The start vector (t = 0).

b AccelerationVector3

The end vector (t = 1).

t double

The interpolation parameter, clamped to [0, 1].

Returns

AccelerationVector3

The interpolated AccelerationVector3, always between a and b.

Multiply(double)

Scales the vector by a scalar factor.

public AccelerationVector3 Multiply(double scalar)

Parameters

scalar double

The scalar factor.

Returns

AccelerationVector3

The scaled vector.

Negate()

Negates all components.

public AccelerationVector3 Negate()

Returns

AccelerationVector3

A vector with all components negated.

Normalize()

Returns a dimensionless unit vector pointing in the same direction. For a zero vector, Zero is returned.

public DoubleVector3 Normalize()

Returns

DoubleVector3

A unit-length DoubleVector3 in the same direction.

Subtract(AccelerationVector3)

Subtracts two vectors component-wise.

public AccelerationVector3 Subtract(AccelerationVector3 other)

Parameters

other AccelerationVector3

The vector to subtract.

Returns

AccelerationVector3

The component-wise difference.

Operators

operator +(AccelerationVector3, AccelerationVector3)

Adds two vectors component-wise.

public static AccelerationVector3 operator +(AccelerationVector3 left, AccelerationVector3 right)

Parameters

left AccelerationVector3

The left operand.

right AccelerationVector3

The right operand.

Returns

AccelerationVector3

The component-wise sum.

operator /(AccelerationVector3, double)

Divides the vector by a scalar divisor.

public static AccelerationVector3 operator /(AccelerationVector3 left, double scalar)

Parameters

left AccelerationVector3

The vector to divide.

scalar double

The scalar divisor.

Returns

AccelerationVector3

The divided vector.

operator /(AccelerationVector3, Duration)

Divides a AccelerationVector3 by a UnitsNet.Duration to produce a JerkVector3.

public static JerkVector3 operator /(AccelerationVector3 left, Duration right)

Parameters

left AccelerationVector3

The left operand.

right Duration

The right operand.

Returns

JerkVector3

A JerkVector3.

operator *(double, AccelerationVector3)

Scales the vector by a scalar factor. Operands may be supplied in either order.

public static AccelerationVector3 operator *(double scalar, AccelerationVector3 right)

Parameters

scalar double

The scalar factor.

right AccelerationVector3

The vector to scale.

Returns

AccelerationVector3

The scaled vector.

operator *(AccelerationVector3, double)

Scales the vector by a scalar factor.

public static AccelerationVector3 operator *(AccelerationVector3 left, double scalar)

Parameters

left AccelerationVector3

The vector to scale.

scalar double

The scalar factor.

Returns

AccelerationVector3

The scaled vector.

operator *(AccelerationVector3, Duration)

Multiplies a AccelerationVector3 by a UnitsNet.Duration to produce a SpeedVector3.

public static SpeedVector3 operator *(AccelerationVector3 left, Duration right)

Parameters

left AccelerationVector3

The left operand.

right Duration

The right operand.

Returns

SpeedVector3

A SpeedVector3.

operator *(AccelerationVector3, Mass)

Multiplies a AccelerationVector3 by a UnitsNet.Mass to produce a ForceVector3.

public static ForceVector3 operator *(AccelerationVector3 left, Mass right)

Parameters

left AccelerationVector3

The left operand.

right Mass

The right operand.

Returns

ForceVector3

A ForceVector3.

operator *(Duration, AccelerationVector3)

Multiplies a UnitsNet.Duration by a AccelerationVector3 to produce a SpeedVector3. Operands may be supplied in either order.

public static SpeedVector3 operator *(Duration left, AccelerationVector3 right)

Parameters

left Duration

The left operand.

right AccelerationVector3

The right operand.

Returns

SpeedVector3

A SpeedVector3.

operator *(Mass, AccelerationVector3)

Multiplies a UnitsNet.Mass by a AccelerationVector3 to produce a ForceVector3. Operands may be supplied in either order.

public static ForceVector3 operator *(Mass left, AccelerationVector3 right)

Parameters

left Mass

The left operand.

right AccelerationVector3

The right operand.

Returns

ForceVector3

A ForceVector3.

operator -(AccelerationVector3, AccelerationVector3)

Subtracts two vectors component-wise.

public static AccelerationVector3 operator -(AccelerationVector3 left, AccelerationVector3 right)

Parameters

left AccelerationVector3

The left operand.

right AccelerationVector3

The right operand.

Returns

AccelerationVector3

The component-wise difference.

operator -(AccelerationVector3)

Negates all components.

public static AccelerationVector3 operator -(AccelerationVector3 value)

Parameters

value AccelerationVector3

The vector to negate.

Returns

AccelerationVector3

A vector with all components negated.

latest ▼