Tesla Graphics Engine Documentation (January 2012)
Vector4 Structure
TeslaTesla.MathVector4
Defines a 4 component vector.
Declaration Syntax
C#
[SerializableAttribute]
public struct Vector4 : IEquatable<Vector4>
Members
All Members Constructors Methods Properties Fields



Icon Member Description
Vector4(Single)
Creates a new instance of Vector4.

Vector4(Vector2, Single, Single)
Creates a new instance of Vector4.

Vector4(Vector3, Single)
Creates a new instance of Vector4.

Vector4(Single, Single, Single, Single)
Creates a new instance of Vector4.

Add(Vector4, Vector4)
Adds two vectors.

Add(Vector4%, Vector4%, Vector4%)
Adds two vectors.

Addition(Vector4, Vector4)
Adds the two vectors together.

Barycentric(Vector4, Vector4, Vector4, Single, Single)
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric coordinates relative to a 4D triangle.

Barycentric(Vector4%, Vector4%, Vector4%, Single, Single, Vector4%)
Returns a Vector4 containing the 3D Cartesian coordinates of a point specified in barycentric coordinates relative to a 3D triangle.

CatmullRom(Vector4, Vector4, Vector4, Vector4, Single)
Compute Catmull-Rom interpolation using the the specified positions.

CatmullRom(Vector4%, Vector4%, Vector4%, Vector4%, Single, Vector4%)
Compute Catmull-Rom interpolation.

Clamp(Vector4, Vector4, Vector4)
Restricts the source vector between the range of the minimum and maximum vectors.

Clamp(Vector4%, Vector4%, Vector4%, Vector4%)
Restricts the source vector between the range of the minimum and maximum vectors.

Distance(Vector4, Vector4)
Compute the distance between two vectors.

Distance(Vector4%, Vector4%, Single%)
Compute the distance between two vectors.

DistanceSquared(Vector4, Vector4)
Compute the distance squared between two vectors.

DistanceSquared(Vector4%, Vector4%, Single%)
Compute the distance squared between two vectors.

Divide(Vector4, Vector4)
Divides the components of one vector by the components of the other.

Divide(Vector4%, Vector4%, Vector4%)
Divides the components of one vector by the components of the other.

Divide(Vector4, Single)
Divides the components of one vector by a scalar.

Divide(Vector4%, Single, Vector4%)
Divides the components of one vector by a scalar.

Division(Vector4, Vector4)
Divides two vectors.

Division(Vector4, Single)
Divides a vector by a scalar value.

Dot(Vector4, Vector4)
Compute the dot product between two vectors.

Dot(Vector4%, Vector4%, Single%)
Compute the dot product between two vectors.

Equality(Vector4, Vector4)
Tests equality between two vectors.

Equals(Vector4)
Tests equality between this vector and another vector.

Equals(Object)
Tests equality between this vector and the supplied object.
(Overrides ValueType.Equals(Object).)
GetHashCode()()()()
Get the object's hash code.
(Overrides ValueType.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Hermite(Vector4, Vector4, Vector4, Vector4, Single)
Compute a Hermite spline interpolation.

Hermite(Vector4%, Vector4%, Vector4%, Vector4%, Single, Vector4%)
Compute a Hermite spline interpolation.

Inequality(Vector4, Vector4)
Tests inequality between two vectors.

Length()()()()
Compute the count (magnitude) of this vector.

LengthSquared()()()()
Compute count (magnitude), squared, of this vector.

Lerp(Vector4, Vector4, Single)
Linearly interpolates between two vectors.

Lerp(Vector4%, Vector4%, Single, Vector4%)
Linearly interpolates between two vectors.

Max(Vector4, Vector4)
Get the vector that contains the maximum value from each of the components of the two supplied vectors.

Max(Vector4%, Vector4%, Vector4%)
Get the vector that contains the maximum value from each of the components of the two supplied vectors.

Min(Vector4, Vector4)
Get the vector that contains the mininum value from each of the components of the two supplied vectors.

Min(Vector4%, Vector4%, Vector4%)
Get the vector that contains the mininum value from each of the components of the two supplied vectors.

Multiply(Vector4, Vector4)
Multiplies components of two vectors together.

Multiply(Vector4%, Vector4%, Vector4%)
Multiplies components of two vectors together.

Multiply(Vector4, Single)
Multiplies components of a vector by a scalar value.

Multiply(Vector4%, Single, Vector4%)
Multiplies components of a vector by a scalar value.

Multiply(Vector4, Vector4)
Multiplies two vectors together.

Multiply(Vector4, Single)
Multiplies a vector by a scaling factor.

Multiply(Single, Vector4)
Multiplies a vector by a scaling factor.

Negate()()()()
Flip the signs of the components of this vector.

Negate(Vector4)
Flip the signs of the vector's components.

Negate(Vector4%, Vector4%)
Flip the signs of the vector's components.

Normalize()()()()
Normalize this vector to a unit vector, which results in a vector with a count of 1 but perserves the direction the vector was pointing in.

Normalize(Vector4)
Normalize the surce vector to a unit vector, which results in a vector with a count of 1 but perserves the direction the vector was pointing in.

Normalize(Vector4%, Vector4%)
Normalize the surce vector to a unit vector, which results in a vector with a count of 1 but perserves the direction the vector was pointing in.

One
Gets a Vector4 set to (1, 1, 1, 1).

SizeInBytes
Gets the size of the Vector4 structure in bytes.

SmoothStep(Vector4, Vector4, Single)
Compute a cubic interpolation between two vectors.

SmoothStep(Vector4%, Vector4%, Single, Vector4%)
Compute a cubic interpolation between two vectors.

Subtract(Vector4, Vector4)
Subtracts a vector from a vector.

Subtract(Vector4%, Vector4%, Vector4%)
Subtracts a vector from a vector.

Subtraction(Vector4, Vector4)
Subtracts a vector from another.

ToString()()()()
Get a string representation for the object.
(Overrides ValueType.ToString()()()().)
Transform(Vector4, Matrix)
Transfroms the specified vector by the matrix.

Transform(Vector4%, Matrix%, Vector4%)
Transfroms the specified vector by the matrix.

Transform(Vector4, Quaternion)
Transfroms the specified vector by the quaternion.

Transform(Vector4%, Quaternion%, Vector4%)
Transfroms the specified vector by the quaternion.

UnaryNegation(Vector4)
Flips the signs of the components of the specified vector.

UnitW
Gets a unit Vector4 set to (0, 0, 0, 1).

UnitX
Gets a unit Vector4 set to (1, 0, 0, 0).

UnitY
Gets a unit Vector4 set to (0, 1, 0, 0).

UnitZ
Gets a unit Vector4 set to (0, 0, 1, 0).

W
W component of this vector.

X
X component of this vector.

Y
Y component of this vector.

Z
Z component of this vector.

Zero
Gets a Vector4 set to (0, 0, 0, 0).

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)