Represents a 3D cartesian vector.
Namespace: SphericalAssembly: SphericalLib (in SphericalLib.dll) Version: 1.0.5951.32246 (1.0.0.0)
Syntax
C# |
---|
[SerializableAttribute] public struct Cartesian |
Visual C++ |
---|
[SerializableAttribute] public value class Cartesian |
F# |
---|
[<SealedAttribute>] [<SerializableAttribute>] type Cartesian = struct end |
Remarks
A unit vector describes a point on the surface of the unit sphere. These concepts are used interchangeably throughout this project.
Cartesian is a mutable value type.
Examples
This is how to compute the 3D cross product of two vectors and normalize it:
CopyC#
Cartesian r = new Cartesian(1,1,0,true); Cartesian x = new Cartesian(1,0,0,false); Cartesian z = x.Cross(r,true);