C# Class MapAround.Geography.Vector3

Vector in three-dimensional Euclidean space.
Exibir arquivo Open project: gkrsu/maparound.core

Public Properties

Property Type Description
X double
Y double
Z double

Public Methods

Method Description
Angle ( Vector3 a ) : double

Angle in radians between this vector and vector passed as an argument.

AngleInDegrees ( Vector3 a ) : double

Angle in degrees between the vector and passed as an argument.

CrossProduct ( Vector3 a ) : Vector3

Calculates the cross product of this vector and the vector is passed as an argument.

Distance ( Vector3 a ) : double

The distance between this vector and passed as an argument.

DistanceSquared ( Vector3 a ) : double

Square of the distance between this vector and passed as an argument.

Length ( ) : double

Calculates the length of the vector.

LengthSquared ( ) : double

Calculates the square of the length.

Unitize ( ) : Vector3

Returns a unit vector with the direction of the vector.

Vector3 ( double x, double y, double z ) : System

Creates an instance of Vector3.

operator ( ) : Vector3

Calculates the sum of vectors.

operator ( ) : double

The scalar product of vectors.

Method Details

Angle() public method

Angle in radians between this vector and vector passed as an argument.
public Angle ( Vector3 a ) : double
a Vector3 Vector
return double

AngleInDegrees() public method

Angle in degrees between the vector and passed as an argument.
public AngleInDegrees ( Vector3 a ) : double
a Vector3 Vector
return double

CrossProduct() public method

Calculates the cross product of this vector and the vector is passed as an argument.
public CrossProduct ( Vector3 a ) : Vector3
a Vector3 Vector
return Vector3

Distance() public method

The distance between this vector and passed as an argument.
public Distance ( Vector3 a ) : double
a Vector3 Vector
return double

DistanceSquared() public method

Square of the distance between this vector and passed as an argument.
public DistanceSquared ( Vector3 a ) : double
a Vector3 Vector
return double

Length() public method

Calculates the length of the vector.
public Length ( ) : double
return double

LengthSquared() public method

Calculates the square of the length.
public LengthSquared ( ) : double
return double

Unitize() public method

Returns a unit vector with the direction of the vector.
public Unitize ( ) : Vector3
return Vector3

Vector3() public method

Creates an instance of Vector3.
public Vector3 ( double x, double y, double z ) : System
x double The value of x
y double The value of y
z double The value of z
return System

operator() public static method

Calculates the sum of vectors.
public static operator ( ) : Vector3
return Vector3

operator() public static method

The scalar product of vectors.
public static operator ( ) : double
return double

Property Details

X public_oe property

public double X
return double

Y public_oe property

public double Y
return double

Z public_oe property

public double Z
return double