C# Класс StdPaint.Vector3

A vector representing a point in 3D space.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
X double
Y double
Z double

Открытые методы

Метод Описание
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..

Описание методов

Distance() публичный статический Метод

Returns the distance between two vectors.
public static Distance ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
Результат double

DistanceSquared() публичный статический Метод

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.
Результат double

Dot() публичный статический Метод

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.
Результат double

Normalize() публичный статический Метод

Returns the normalized version of a vector.
public static Normalize ( Vector3 vector ) : Vector3
vector Vector3 The vector to normalize.
Результат Vector3

Vector3() публичный Метод

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.
Результат System

operator() публичный статический Метод

Multiplies a vector by a matrix..
public static operator ( ) : Vector3
Результат Vector3

Описание свойств

X публичное свойство

The X coodinate.
public double X
Результат double

Y публичное свойство

The Y coordinate.
public double Y
Результат double

Z публичное свойство

The Z coordinate.
public double Z
Результат double