C# Class StdPaint.Vector4

A vector representing homogeneous coordinates in 3D space.
显示文件 Open project: TheBerkin/StdPaint

Public Properties

Property Type Description
W double
X double
Y double
Z double

Public Methods

Method Description
FromVector3 ( Vector3 a ) : Vector4

Returns the Vector4 equivalent of the specified Vector3.

Vector4 ( double x, double y, double z, double w ) : System

Create a new Vector3 from coordinates.

operator ( ) : Vector4

Multiplies a Vector4 by a scalar.

Method Details

FromVector3() public static method

Returns the Vector4 equivalent of the specified Vector3.
public static FromVector3 ( Vector3 a ) : Vector4
a Vector3 The vector to convert.
return Vector4

Vector4() public method

Create a new Vector3 from coordinates.
public Vector4 ( double x, double y, double z, double w ) : System
x double The X coordinate.
y double The Y coordinate.
z double The Z coordinate.
w double The W coordinate.
return System

operator() public static method

Multiplies a Vector4 by a scalar.
public static operator ( ) : Vector4
return Vector4

Property Details

W public_oe property

The W coordinate.
public double W
return double

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