C# Class StdPaint.Vector3

A vector representing a point in 3D space.
Mostra file Open project: TheBerkin/StdPaint

Public Properties

Property Type Description
X double
Y double
Z double

Public Methods

Method 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 method

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

DistanceSquared() public static method

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.
return double

Dot() public static method

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.
return double

Normalize() public static method

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

Vector3() public method

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.
return System

operator() public static method

Multiplies a vector by a matrix..
public static operator ( ) : Vector3
return Vector3

Property Details

X public_oe property

The X coodinate.
public double X
return double

Y public_oe property

The Y coordinate.
public double Y
return double

Z public_oe property

The Z coordinate.
public double Z
return double