Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoUnits.Vec3 Struct Reference

3D vector type with double precision. More...

Public Member Functions

 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 Public Member Functions

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.
 

Properties

double X [get, set]
 X Coordinate.
 
double Y [get, set]
 Y Coordinate.
 
double Z [get, set]
 Z Coordinate.
 

Detailed Description

3D vector type with double precision.

Constructor & Destructor Documentation

◆ Vec3()

TPG.GeoUnits.Vec3.Vec3 ( GeoPos  spherical,
double  radius 
)
inline

Get centered XYZ coordinates from spherical coordinates.

Parameters
sphericalGeoPos
radius1 for unit sphere, Earth.RADIUS for earth

Member Function Documentation

◆ 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: