Show / Hide Table of Contents

Class VectorExtractor

Defines how to extract vector data from a collection of strings.

Inheritance
object
VectorExtractor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public static class VectorExtractor
Remarks

This class currently supports 2D and 3D location data. It also supports location data that are separated into 3 different fields in the bug database, or are kept in one field. If location data are kept in one field, then this manager expects the data to be comma delimited.

Methods

View Source

GetVector3FromLocationData(IEnumerable<string>, string, string)

Tries to convert a collection of strings into a Vector3 struct.

Declaration
public static Vector3? GetVector3FromLocationData(IEnumerable<string> locationData, string filterRegex, string delimiter)
Parameters
Type Name Description
IEnumerable<string> locationData

The collection of strings that represent the location data. This can either be in component form, or be contained all in one string, like "(x, y, z)".

string filterRegex

The regex string pattern that defines which characters should be removed from the location data string.

string delimiter

The delimiter for how location data is separated.

Returns
Type Description
Vector3?

True if the data was extracted successfully, false if not.

Remarks

This class throws an ArubaException if the data isn't in 2D or 3D format. The fields filterRegex and delimiter are only relevant if location data is stored in one field.

  • View Source
In this article
Back to top Generated by DocFX