C# Class StdPaint.Vector3

A vector representing a point in 3D space.
Afficher le fichier Open project: TheBerkin/StdPaint

Méthodes publiques

Свойство Type Description
X double
Y double
Z double

Méthodes publiques

Méthode Description
Distance ( Vector3 a, Vector3 b ) : double

Returns the distance between two vectors.

DistanceSquared ( Vector3 a, Vector3 b ) : double

Returns the squared distance between two vectors.

Dot ( Vector3 a, Vector3 b ) : double

Returns the dot product of two vectors.

Normalize ( Vector3 vector ) : Vector3

Returns the normalized version of a vector.

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

Create a new Vector3 from coordinates.

operator ( ) : Vector3

Multiplies a vector by a matrix..

Method Details

Distance() public static méthode

Returns the distance between two vectors.
public static Distance ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
Résultat double

DistanceSquared() public static méthode

Returns the squared distance between two vectors.
public static DistanceSquared ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
Résultat double

Dot() public static méthode

Returns the dot product of two vectors.
public static Dot ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
Résultat double

Normalize() public static méthode

Returns the normalized version of a vector.
public static Normalize ( Vector3 vector ) : Vector3
vector Vector3 The vector to normalize.
Résultat Vector3

Vector3() public méthode

Create a new Vector3 from coordinates.
public Vector3 ( double x, double y, double z ) : System
x double The X coordinate.
y double The Y coordinate.
z double The Z coordinate.
Résultat System

operator() public static méthode

Multiplies a vector by a matrix..
public static operator ( ) : Vector3
Résultat Vector3

Property Details

X public_oe property

The X coodinate.
public double X
Résultat double

Y public_oe property

The Y coordinate.
public double Y
Résultat double

Z public_oe property

The Z coordinate.
public double Z
Résultat double