Class LineProfile
Represents values along a line segment.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: VMS.TPS.Common.Model.Types
Assembly: VMS.TPS.Common.Model.Types.dll
Syntax
public abstract class LineProfile : IEnumerable<ProfilePoint>, IEnumerable
Constructors
LineProfile(VVector, VVector, Double[])
Constructs a LineProfile.
Declaration
public LineProfile(VVector origin, VVector step, double[] data)
Parameters
Type | Name | Description |
---|---|---|
VVector | origin | Origin, i.e. position of first point of the profile. |
VVector | step | Step length and direction between points on the profile. |
System.Double[] | data | Array of values of the profile. |
Properties
Count
The number of points in the profile.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Gets the specified point from the profile.
Declaration
public ProfilePoint this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Zero based index of the point to retrieve. |
Property Value
Type | Description |
---|---|
ProfilePoint | Point at the given index. |
Methods
GetEnumerator()
An enumerator for the points in the profile.
Declaration
public IEnumerator<ProfilePoint> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ProfilePoint> | Enumerator for points in the profile. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
A non-generic version of the enumerator for the points in the profile.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | Enumerator for points in the profile. |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable