Class Point3dArrayExtension
Inherited Members
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public static class Point3dArrayExtension
Methods
View SourceAsGeoCoordinateElevationCollection(Point3d[], string, CoordinateSystem)
Convert Point3d array to GeoCoordinateElevationCollection
Declaration
public static GeoCoordinateElevationCollection AsGeoCoordinateElevationCollection(this Point3d[] points3dArray, string projectionZone, CoordinateSystem coordinateSystem)
Parameters
Type | Name | Description |
---|---|---|
Point3d[] | points3dArray | Existing instance of the Point3d array |
string | projectionZone | Projection Zone of coordinate system to use |
CoordinateSystem | coordinateSystem | Coordinate system |
Returns
Type | Description |
---|---|
GeoCoordinateElevationCollection | GeoCoordinateElevationCollection - Collection of geocoordinates with elevations |
GetRotated2DByDegrees(Point3d[], double)
Returns a new Point3d array with all elements rotated around origin of 0,0
Declaration
public static Point3d[] GetRotated2DByDegrees(this Point3d[] points3dArray, double degrees)
Parameters
Type | Name | Description |
---|---|---|
Point3d[] | points3dArray | Existing instance of the Point3d array |
double | degrees | Angle in degrees that the point with be rotated |
Returns
Type | Description |
---|---|
Point3d[] | Point3d array of the elements rotated |
GetTranslated(Point3d[], double, double)
Returns a new Point3d array with all elements translated in both the X and Y axis
Declaration
public static Point3d[] GetTranslated(this Point3d[] points3dArray, double deltaX, double deltaY)
Parameters
Type | Name | Description |
---|---|---|
Point3d[] | points3dArray | Existing instance of the Point3d array |
double | deltaX | distance delta in the X-axis |
double | deltaY | distance delta in the Y-axis |
Returns
Type | Description |
---|---|
Point3d[] | Point3d array of the element translated |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Null passed for any of the parameters |
Rotate2DByDegrees(Point3d[], double)
Performs a rotation on the current instance of the Point3d array with all element rotated around origin of 0,0
Declaration
public static void Rotate2DByDegrees(this Point3d[] points3dArray, double degrees)
Parameters
Type | Name | Description |
---|---|---|
Point3d[] | points3dArray | Existing instance of the Point3d array |
double | degrees | Angle in degrees that the point with be rotated |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Null passed for any of the parameters |
Translate(Point3d[], double, double)
Performs a translation on the current instance of the Point3d array with all element tranlated in the X and Y axis
Declaration
public static void Translate(this Point3d[] points3dArray, double deltaX, double deltaY)
Parameters
Type | Name | Description |
---|---|---|
Point3d[] | points3dArray | Existing instance of the Point3d array |
double | deltaX | distance delta in the X-axis |
double | deltaY | distance delta in the Y-axis |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Null passed for any of the parameters |
ZAddition(Point3d[], double)
Performs a addition to the Z value only
Declaration
public static void ZAddition(this Point3d[] points3dArray, double zAddition)
Parameters
Type | Name | Description |
---|---|---|
Point3d[] | points3dArray | Existing instance of the Point3d array |
double | zAddition | Value to add to each Z member in the array |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Null passed for any of the parameters |