3D vector type with double precision.
More...
|
| Vec3 (double x, double y, double z) |
| Constructor.
|
|
| Vec3 (GeoPos spherical, double radius) |
| Get centered XYZ coordinates from spherical coordinates.
|
|
GeoPos | SpherePos () |
| Returns position on sphere of this vector normalized.
|
|
double | Length () |
|
void | Normalize () |
| Normalize vector to unit length.
|
|
Vec3 | Cross (Vec3 v) |
| Cross product.
|
|
double | Dot (Vec3 v) |
| Dot product.
|
|
|
static Vec3 | Cross (Vec3 v1, Vec3 v2) |
| Cross product.
|
|
static double | Dot (Vec3 v1, Vec3 v2) |
| Dot product.
|
|
static Vec3 | operator* (Vec3 v, double s) |
| Scalar multiplication.
|
|
static Vec3 | operator+ (Vec3 v1, Vec3 v2) |
| Addition operator.
|
|
static Vec3 | operator- (Vec3 v1, Vec3 v2) |
| Subtraction operator.
|
|
static Vec3 | operator- (Vec3 v) |
| Unary negation operator.
|
|
|
double | X [get, set] |
| X Coordinate.
|
|
double | Y [get, set] |
| Y Coordinate.
|
|
double | Z [get, set] |
| Z Coordinate.
|
|
3D vector type with double precision.
◆ Vec3()
TPG.GeoUnits.Vec3.Vec3 |
( |
GeoPos |
spherical, |
|
|
double |
radius |
|
) |
| |
|
inline |
Get centered XYZ coordinates from spherical coordinates.
- Parameters
-
spherical | GeoPos |
radius | 1 for unit sphere, Earth.RADIUS for earth |
◆ SpherePos()
GeoPos TPG.GeoUnits.Vec3.SpherePos |
( |
| ) |
|
|
inline |
Returns position on sphere of this vector normalized.
summary> Calculate the length of the vector. /summary>
The documentation for this struct was generated from the following file:
- Src/Libraries/Teleplan.C4IS.Geo/Objects/BoundingCircle.cs