Class Point3dArrayExtension
Inheritance
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public static class Point3dArrayExtension : object
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 |
System.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 |
System.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 |
System.Double | deltaX | distance delta in the X-axis |
System.Double | deltaY | distance delta in the Y-axis |
Returns
Type | Description |
---|---|
Point3d[] | Point3d array of the element translated |
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 |
System.Double | degrees | Angle in degrees that the point with be rotated |
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 |
System.Double | deltaX | distance delta in the X-axis |
System.Double | deltaY | distance delta in the Y-axis |
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 |
System.Double | zAddition | Value to add to each Z member in the array |