Record TDimension
Unit
Declaration
type TDimension = record
Description
Represents the physical dimension of a quantity using the SI base units.
Each field stores the integer exponent of the corresponding SI base unit. For example, a velocity has dimension m¹·s⁻¹, represented as FMeter=1, FSecond=-1 with all other exponents equal to zero. A dimensionless quantity has all exponents equal to zero.
Dimension arithmetic follows the rules of dimensional analysis:
Multiplication of quantities → addition of exponents
Division of quantities → subtraction of exponents
Power of a quantity → multiplication of exponents by an integer
Root of a quantity → division of exponents by an integer
Overview
Methods
| Public | function ToString: string; |
| Public | class operator *(const ALeft: longint; ARight: TDimension): TDimension; |
| Public | class operator *(const ALeft: TDimension; ARight: longint): TDimension; |
| Public | class operator +(const ASelf: TDimension): TDimension; |
| Public | class operator +(const ALeft, ARight: TDimension): TDimension; |
| Public | class operator -(const ASelf: TDimension): TDimension; |
| Public | class operator -(const ALeft, ARight: TDimension): TDimension; |
| Public | class operator <>(const ALeft, ARight: TDimension): boolean; |
| Public | class operator =(const ALeft, ARight: TDimension): boolean; |
| Public | class operator div(const ALeft: TDimension; ARight: longint): TDimension; |
Description
Methods
| Public | function ToString: string; |
|
Returns a human-readable string representation of the dimension. Exponents equal to zero are omitted. Positive exponents are listed first, followed by negative ones with a | |
| Public | class operator *(const ALeft: longint; ARight: TDimension): TDimension; |
|
Returns the dimension scaled by an integer exponent. Each exponent is multiplied by | |
| Public | class operator *(const ALeft: TDimension; ARight: longint): TDimension; |
|
Returns the dimension scaled by an integer exponent. Each exponent is multiplied by | |
| Public | class operator +(const ASelf: TDimension): TDimension; |
|
Unary plus. Returns the dimension unchanged. | |
| Public | class operator +(const ALeft, ARight: TDimension): TDimension; |
|
Returns the sum of two dimensions, i.e. the dimension resulting from multiplying two physical quantities. Each exponent of the result equals the sum of the corresponding exponents. | |
| Public | class operator -(const ASelf: TDimension): TDimension; |
|
Unary minus. Returns the inverse dimension. Each exponent is negated: used to represent the dimension of a reciprocal quantity. | |
| Public | class operator -(const ALeft, ARight: TDimension): TDimension; |
|
Returns the difference of two dimensions, i.e. the dimension resulting from dividing two physical quantities. Each exponent of the result equals the difference of the corresponding exponents. | |
| Public | class operator <>(const ALeft, ARight: TDimension): boolean; |
|
Returns | |
| Public | class operator =(const ALeft, ARight: TDimension): boolean; |
|
Returns | |
| Public | class operator div(const ALeft: TDimension; ARight: longint): TDimension; |
|
Returns the dimension divided by an integer. Each exponent is divided by | |
Generated by PasDoc 1.0.4.