Table of Contents

Class TimeValue

Namespace
Hi.Physics
Assembly
HiGeom.dll

Represents a value associated with a specific point in time.

public class TimeValue : ITimeGetter
Inheritance
TimeValue
Implements
Inherited Members
Extension Methods

Constructors

TimeValue(TimeSpan, double)

Initializes a new instance of the TimeValue class with the specified time and value.

public TimeValue(TimeSpan time_s, double value)

Parameters

time_s TimeSpan

The time in seconds.

value double

The value associated with the time.

Fields

value

The value associated with the time.

public double value

Field Value

double

Properties

Time

Gets or sets the time value in seconds.

public TimeSpan Time { get; set; }

Property Value

TimeSpan

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

ToString(string)

Returns a string representation of this instance using the specified format.

public string ToString(string format)

Parameters

format string

The format to use for the string representation.

Returns

string

A string representation of this instance.

Operators

operator +(TimeValue, TimeValue)

Adds two TimeValue instances.

public static TimeValue operator +(TimeValue a, TimeValue b)

Parameters

a TimeValue

The first TimeValue instance.

b TimeValue

The second TimeValue instance.

Returns

TimeValue

A new TimeValue instance with the sum of times and values.

operator *(TimeValue, double)

Multiplies a TimeValue instance by a scalar.

public static TimeValue operator *(TimeValue a, double scale)

Parameters

a TimeValue

The TimeValue instance to multiply.

scale double

The scalar value to multiply by.

Returns

TimeValue

A new TimeValue instance with scaled time and value.