AtomicNET : AtomicEngine Namespace

Vector4 Struct

Represents a 4D vector using four single-precision floating-point numbers.

Syntax

public struct Vector4 : IEquatable<Vector4>

Remarks

The Vector4 structure is suitable for interoperation with unmanaged code requiring four consecutive floats.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from ValueType.

Public Constructors

Constructs a new Vector4 from the given Vector2.
Constructs a new Vector4 from the given Vector3.
Constructs a new Vector4 from the given Vector4.
Constructs a new Vector4 from the specified Vector3 and W component.
Constructs a new Vector4.

Public Fields

static readonly
One Vector4 . Defines an instance with all components set to 1.
static readonly
SizeInBytes int . Defines the size of the Vector4 struct in bytes.
static
UnitW Vector4 . Defines a unit-length Vector4 that points towards the W-axis.
static
UnitX Vector4 . Defines a unit-length Vector4 that points towards the X-axis.
static
UnitY Vector4 . Defines a unit-length Vector4 that points towards the Y-axis.
static
UnitZ Vector4 . Defines a unit-length Vector4 that points towards the Z-axis.
W float . The W component of the Vector4.
X float . The X component of the Vector4.
Y float . The Y component of the Vector4.
Z float . The Z component of the Vector4.
static
Zero Vector4 . Defines a zero-length Vector4.

Public Properties

[read-only]
Length float . Gets the length (magnitude) of the vector.
[read-only]
LengthFast float . Gets an approximation of the vector length (magnitude).
[read-only]
LengthSquared float . Gets the square of the vector length (magnitude).
Xy Vector2 . Gets or sets an OpenTK.Vector2 with the X and Y components of this instance.
Xyz Vector3 . Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.

Public Methods

Add (Vector4)
Add the Vector passed as parameter to this instance.
Add (ref Vector4)
Add the Vector passed as parameter to this instance.
static
Add (Vector4, Vector4) : Vector4
Adds two vectors.
static
Add (ref Vector4, ref Vector4, out Vector4)
Adds two vectors.
static
BaryCentric (Vector4, Vector4, Vector4, float, float) : Vector4
Interpolate 3 Vectors using Barycentric coordinates
static
BaryCentric (ref Vector4, ref Vector4, ref Vector4, float, float, out Vector4)
Interpolate 3 Vectors using Barycentric coordinates
static
Clamp (Vector4, Vector4, Vector4) : Vector4
Clamp a vector to the given minimum and maximum vectors
static
Clamp (ref Vector4, ref Vector4, ref Vector4, out Vector4)
Clamp a vector to the given minimum and maximum vectors
Div (float)
Divide this instance by a scalar.
static
Div (Vector4, float) : Vector4
Divide a vector by a scalar
static
Div (ref Vector4, float, out Vector4)
Divide a vector by a scalar
static
Divide (Vector4, Vector4) : Vector4
Divides a vector by the components of a vector (scale).
static
Divide (Vector4, float) : Vector4
Divides a vector by a scalar.
static
Divide (ref Vector4, ref Vector4, out Vector4)
Divide a vector by the components of a vector (scale).
static
Divide (ref Vector4, float, out Vector4)
Divides a vector by a scalar.
static
Dot (Vector4, Vector4) : float
Calculate the dot product of two vectors
static
Dot (ref Vector4, ref Vector4, out float)
Calculate the dot product of two vectors
Equals (Vector4) : bool
Indicates whether the current vector is equal to another vector.
override
Equals (object) : bool
Indicates whether this instance and a specified object are equal.
override
GetHashCode () : int
Returns the hashcode for this instance.
static
Lerp (Vector4, Vector4, float) : Vector4
Returns a new Vector that is the linear blend of the 2 given Vectors
static
Lerp (ref Vector4, ref Vector4, float, out Vector4)
Returns a new Vector that is the linear blend of the 2 given Vectors
static
Max (Vector4, Vector4) : Vector4
Calculate the component-wise maximum of two vectors
static
Max (ref Vector4, ref Vector4, out Vector4)
Calculate the component-wise maximum of two vectors
static
Min (Vector4, Vector4) : Vector4
Calculate the component-wise minimum of two vectors
static
Min (ref Vector4, ref Vector4, out Vector4)
Calculate the component-wise minimum of two vectors
Mult (float)
Multiply this instance by a scalar.
static
Mult (Vector4, float) : Vector4
Multiply a vector and a scalar
static
Mult (ref Vector4, float, out Vector4)
Multiply a vector and a scalar
static
Multiply (Vector4, Vector4) : Vector4
Multiplies a vector by the components a vector (scale).
static
Multiply (Vector4, float) : Vector4
Multiplies a vector by a scalar.
static
Multiply (ref Vector4, ref Vector4, out Vector4)
Multiplies a vector by the components of a vector (scale).
static
Multiply (ref Vector4, float, out Vector4)
Multiplies a vector by a scalar.
Normalize ()
Scales the Vector4 to unit length.
static
Normalize (Vector4) : Vector4
Scale a vector to unit length
static
Normalize (ref Vector4, out Vector4)
Scale a vector to unit length
NormalizeFast ()
Scales the Vector4 to approximately unit length.
static
NormalizeFast (Vector4) : Vector4
Scale a vector to approximately unit length
static
NormalizeFast (ref Vector4, out Vector4)
Scale a vector to approximately unit length
Scale (Vector4)
Scales this instance by the given parameter.
Scale (ref Vector4)
Scales this instance by the given parameter.
Scale (float, float, float, float)
Scales the current Vector4 by the given amounts.
Sub (Vector4)
Subtract the Vector passed as parameter from this instance.
Sub (ref Vector4)
Subtract the Vector passed as parameter from this instance.
static
Sub (Vector4, Vector4) : Vector4
Subtract one Vector from another
static
Sub (ref Vector4, ref Vector4, out Vector4)
Subtract one Vector from another
static
Subtract (Vector4, Vector4) : Vector4
Subtract one Vector from another
static
Subtract (ref Vector4, ref Vector4, out Vector4)
Subtract one Vector from another
override
ToString () : string
Returns a System.String that represents the current Vector4.
static
Transform (Vector4, Matrix4) : Vector4
Transform a Vector by the given Matrix
static
Transform (ref Vector4, ref Matrix4, out Vector4)
Transform a Vector by the given Matrix

Public Operators

static
Addition (Vector4, Vector4) Adds two instances.
static
Division (Vector4, float) Divides an instance by a scalar.
static
Equality (Vector4, Vector4) Compares two instances for equality.
static
Inequality (Vector4, Vector4) Compares two instances for inequality.
static
Multiply (Vector4, float) Multiplies an instance by a scalar.
static
Multiply (float, Vector4) Multiplies an instance by a scalar.
static
Subtraction (Vector4, Vector4) Subtracts two instances.
static
UnaryNegation Negates an instance.
static
Conversion to System.IntPtr (Explicit) Returns a pointer to the first element of the specified instance.
static
Conversion to System.Single* (Explicit) Returns a pointer to the first element of the specified instance.

Member Details

Vector4 Constructor

Constructs a new Vector4 from the given Vector2.

Syntax

public Vector4 (Vector2 v)

Parameters

v
The Vector2 to copy components from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Vector4 Constructor

Constructs a new Vector4 from the given Vector3.

Syntax

public Vector4 (Vector3 v)

Parameters

v
The Vector3 to copy components from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Vector4 Constructor

Constructs a new Vector4 from the given Vector4.

Syntax

public Vector4 (Vector4 v)

Parameters

v
The Vector4 to copy components from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Vector4 Constructor

Constructs a new Vector4 from the specified Vector3 and W component.

Syntax

public Vector4 (Vector3 v, float w)

Parameters

v
The Vector3 to copy components from.
w
The W component of the new Vector4.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Vector4 Constructor

Constructs a new Vector4.

Syntax

public Vector4 (float x, float y, float z, float w)

Parameters

x
The x component of the Vector4.
y
The y component of the Vector4.
z
The z component of the Vector4.
w
The z component of the Vector4.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Add Method

Add the Vector passed as parameter to this instance.

Syntax

[System.Obsolete("Use static Add() method instead.")]
public void Add (Vector4 right)

Parameters

right
Right operand. This parameter is only read from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Add Method

Add the Vector passed as parameter to this instance.

Syntax

[System.CLSCompliant(false)]
[System.Obsolete("Use static Add() method instead.")]
public void Add (ref Vector4 right)

Parameters

right
Right operand. This parameter is only read from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Add Method

Adds two vectors.

Syntax

public static Vector4 Add (Vector4 a, Vector4 b)

Parameters

a
Left operand.
b
Right operand.

Returns

Result of operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Add Method

Adds two vectors.

Syntax

public static void Add (ref Vector4 a, ref Vector4 b, out Vector4 result)

Parameters

a
Left operand.
b
Right operand.
result
Result of operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

BaryCentric Method

Interpolate 3 Vectors using Barycentric coordinates

Syntax

public static Vector4 BaryCentric (Vector4 a, Vector4 b, Vector4 c, float u, float v)

Parameters

a
First input Vector
b
Second input Vector
c
Third input Vector
u
First Barycentric Coordinate
v
Second Barycentric Coordinate

Returns

a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

BaryCentric Method

Interpolate 3 Vectors using Barycentric coordinates

Syntax

public static void BaryCentric (ref Vector4 a, ref Vector4 b, ref Vector4 c, float u, float v, out Vector4 result)

Parameters

a
First input Vector.
b
Second input Vector.
c
Third input Vector.
u
First Barycentric Coordinate.
v
Second Barycentric Coordinate.
result
Output Vector. a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Clamp Method

Clamp a vector to the given minimum and maximum vectors

Syntax

public static Vector4 Clamp (Vector4 vec, Vector4 min, Vector4 max)

Parameters

vec
Input vector
min
Minimum vector
max
Maximum vector

Returns

The clamped vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Clamp Method

Clamp a vector to the given minimum and maximum vectors

Syntax

public static void Clamp (ref Vector4 vec, ref Vector4 min, ref Vector4 max, out Vector4 result)

Parameters

vec
Input vector
min
Minimum vector
max
Maximum vector
result
The clamped vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Div Method

Divide this instance by a scalar.

Syntax

[System.Obsolete("Use static Divide() method instead.")]
public void Div (float f)

Parameters

f
Scalar operand.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Div Method

Divide a vector by a scalar

Syntax

public static Vector4 Div (Vector4 a, float f)

Parameters

a
Vector operand
f
Scalar operand

Returns

Result of the division

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Div Method

Divide a vector by a scalar

Syntax

public static void Div (ref Vector4 a, float f, out Vector4 result)

Parameters

a
Vector operand
f
Scalar operand
result
Result of the division

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Divide Method

Divides a vector by the components of a vector (scale).

Syntax

public static Vector4 Divide (Vector4 vector, Vector4 scale)

Parameters

vector
Left operand.
scale
Right operand.

Returns

Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Divide Method

Divides a vector by a scalar.

Syntax

public static Vector4 Divide (Vector4 vector, float scale)

Parameters

vector
Left operand.
scale
Right operand.

Returns

Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Divide Method

Divide a vector by the components of a vector (scale).

Syntax

public static void Divide (ref Vector4 vector, ref Vector4 scale, out Vector4 result)

Parameters

vector
Left operand.
scale
Right operand.
result
Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Divide Method

Divides a vector by a scalar.

Syntax

public static void Divide (ref Vector4 vector, float scale, out Vector4 result)

Parameters

vector
Left operand.
scale
Right operand.
result
Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Dot Method

Calculate the dot product of two vectors

Syntax

public static float Dot (Vector4 left, Vector4 right)

Parameters

left
First operand
right
Second operand

Returns

The dot product of the two inputs

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Dot Method

Calculate the dot product of two vectors

Syntax

public static void Dot (ref Vector4 left, ref Vector4 right, out float result)

Parameters

left
First operand
right
Second operand
result
The dot product of the two inputs

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Equals Method

Indicates whether the current vector is equal to another vector.

Syntax

public bool Equals (Vector4 other)

Parameters

other
A vector to compare with this vector.

Returns

true if the current vector is equal to the vector parameter; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Equals Method

Indicates whether this instance and a specified object are equal.

Syntax

public override bool Equals (object obj)

Parameters

obj
The object to compare to.

Returns

True if the instances are equal; false otherwise.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

GetHashCode Method

Returns the hashcode for this instance.

Syntax

public override int GetHashCode ()

Returns

A System.Int32 containing the unique hashcode for this instance.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Length Property

Gets the length (magnitude) of the vector.

Syntax

public float Length { get; }

See Also

Vector4.LengthSquared

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

LengthFast Property

Gets an approximation of the vector length (magnitude).

Syntax

public float LengthFast { get; }

See Also

Vector4.LengthSquared

Value

Documentation for this section has not yet been entered.

Remarks

This property uses an approximation of the square root function to calculate vector magnitude, with an upper error bound of 0.001.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

LengthSquared Property

Gets the square of the vector length (magnitude).

Syntax

public float LengthSquared { get; }

See Also

Vector4.LengthFast

Value

Documentation for this section has not yet been entered.

Remarks

This property avoids the costly square root operation required by the Length property. This makes it more suitable for comparisons.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Lerp Method

Returns a new Vector that is the linear blend of the 2 given Vectors

Syntax

public static Vector4 Lerp (Vector4 a, Vector4 b, float blend)

Parameters

a
First input vector
b
Second input vector
blend
The blend factor. a when blend=0, b when blend=1.

Returns

a when blend=0, b when blend=1, and a linear combination otherwise

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Lerp Method

Returns a new Vector that is the linear blend of the 2 given Vectors

Syntax

public static void Lerp (ref Vector4 a, ref Vector4 b, float blend, out Vector4 result)

Parameters

a
First input vector
b
Second input vector
blend
The blend factor. a when blend=0, b when blend=1.
result
a when blend=0, b when blend=1, and a linear combination otherwise

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Max Method

Calculate the component-wise maximum of two vectors

Syntax

public static Vector4 Max (Vector4 a, Vector4 b)

Parameters

a
First operand
b
Second operand

Returns

The component-wise maximum

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Max Method

Calculate the component-wise maximum of two vectors

Syntax

public static void Max (ref Vector4 a, ref Vector4 b, out Vector4 result)

Parameters

a
First operand
b
Second operand
result
The component-wise maximum

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Min Method

Calculate the component-wise minimum of two vectors

Syntax

public static Vector4 Min (Vector4 a, Vector4 b)

Parameters

a
First operand
b
Second operand

Returns

The component-wise minimum

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Min Method

Calculate the component-wise minimum of two vectors

Syntax

public static void Min (ref Vector4 a, ref Vector4 b, out Vector4 result)

Parameters

a
First operand
b
Second operand
result
The component-wise minimum

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Mult Method

Multiply this instance by a scalar.

Syntax

[System.Obsolete("Use static Multiply() method instead.")]
public void Mult (float f)

Parameters

f
Scalar operand.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Mult Method

Multiply a vector and a scalar

Syntax

public static Vector4 Mult (Vector4 a, float f)

Parameters

a
Vector operand
f
Scalar operand

Returns

Result of the multiplication

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Mult Method

Multiply a vector and a scalar

Syntax

public static void Mult (ref Vector4 a, float f, out Vector4 result)

Parameters

a
Vector operand
f
Scalar operand
result
Result of the multiplication

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Multiply Method

Multiplies a vector by the components a vector (scale).

Syntax

public static Vector4 Multiply (Vector4 vector, Vector4 scale)

Parameters

vector
Left operand.
scale
Right operand.

Returns

Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Multiply Method

Multiplies a vector by a scalar.

Syntax

public static Vector4 Multiply (Vector4 vector, float scale)

Parameters

vector
Left operand.
scale
Right operand.

Returns

Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Multiply Method

Multiplies a vector by the components of a vector (scale).

Syntax

public static void Multiply (ref Vector4 vector, ref Vector4 scale, out Vector4 result)

Parameters

vector
Left operand.
scale
Right operand.
result
Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Multiply Method

Multiplies a vector by a scalar.

Syntax

public static void Multiply (ref Vector4 vector, float scale, out Vector4 result)

Parameters

vector
Left operand.
scale
Right operand.
result
Result of the operation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Normalize Method

Scales the Vector4 to unit length.

Syntax

public void Normalize ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Normalize Method

Scale a vector to unit length

Syntax

public static Vector4 Normalize (Vector4 vec)

Parameters

vec
The input vector

Returns

The normalized vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Normalize Method

Scale a vector to unit length

Syntax

public static void Normalize (ref Vector4 vec, out Vector4 result)

Parameters

vec
The input vector
result
The normalized vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

NormalizeFast Method

Scales the Vector4 to approximately unit length.

Syntax

public void NormalizeFast ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

NormalizeFast Method

Scale a vector to approximately unit length

Syntax

public static Vector4 NormalizeFast (Vector4 vec)

Parameters

vec
The input vector

Returns

The normalized vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

NormalizeFast Method

Scale a vector to approximately unit length

Syntax

public static void NormalizeFast (ref Vector4 vec, out Vector4 result)

Parameters

vec
The input vector
result
The normalized vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

One Field

Defines an instance with all components set to 1.

Syntax

public static readonly Vector4 One

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Addition Method

Adds two instances.

Syntax

public static Vector4 operator+ (Vector4 left, Vector4 right)

Parameters

left
The first instance.
right
The second instance.

Returns

The result of the calculation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Division Method

Divides an instance by a scalar.

Syntax

public static Vector4 operator/ (Vector4 vec, float scale)

Parameters

vec
The instance.
scale
The scalar.

Returns

The result of the calculation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Equality Method

Compares two instances for equality.

Syntax

public static bool operator== (Vector4 left, Vector4 right)

Parameters

left
The first instance.
right
The second instance.

Returns

True, if left equals right; false otherwise.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Conversion Method

Returns a pointer to the first element of the specified instance.

Syntax

public static explicit operator IntPtr (Vector4 v)

Parameters

v
The instance.

Returns

A pointer to the first element of v.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Conversion Method

Returns a pointer to the first element of the specified instance.

Syntax

[System.CLSCompliant(false)]
public static explicit operator float* (Vector4 v)

Parameters

v
The instance.

Returns

A pointer to the first element of v.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Inequality Method

Compares two instances for inequality.

Syntax

public static bool operator!= (Vector4 left, Vector4 right)

Parameters

left
The first instance.
right
The second instance.

Returns

True, if left does not equa lright; false otherwise.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Multiply Method

Multiplies an instance by a scalar.

Syntax

public static Vector4 operator* (Vector4 vec, float scale)

Parameters

vec
The instance.
scale
The scalar.

Returns

The result of the calculation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Multiply Method

Multiplies an instance by a scalar.

Syntax

public static Vector4 operator* (float scale, Vector4 vec)

Parameters

scale
The scalar.
vec
The instance.

Returns

The result of the calculation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_Subtraction Method

Subtracts two instances.

Syntax

public static Vector4 operator- (Vector4 left, Vector4 right)

Parameters

left
The first instance.
right
The second instance.

Returns

The result of the calculation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

op_UnaryNegation Method

Negates an instance.

Syntax

public static Vector4 operator- (Vector4 vec)

Parameters

vec
The instance.

Returns

The result of the calculation.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Scale Method

Scales this instance by the given parameter.

Syntax

[System.Obsolete("Use static Multiply() method instead.")]
public void Scale (Vector4 scale)

Parameters

scale
The scaling of the individual components.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Scale Method

Scales this instance by the given parameter.

Syntax

[System.CLSCompliant(false)]
[System.Obsolete("Use static Multiply() method instead.")]
public void Scale (ref Vector4 scale)

Parameters

scale
The scaling of the individual components.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Scale Method

Scales the current Vector4 by the given amounts.

Syntax

[System.Obsolete("Use static Multiply() method instead.")]
public void Scale (float sx, float sy, float sz, float sw)

Parameters

sx
The scale of the X component.
sy
The scale of the Y component.
sz
The scale of the Z component.
sw
The scale of the Z component.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

SizeInBytes Field

Defines the size of the Vector4 struct in bytes.

Syntax

public static readonly int SizeInBytes

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Sub Method

Subtract the Vector passed as parameter from this instance.

Syntax

[System.Obsolete("Use static Subtract() method instead.")]
public void Sub (Vector4 right)

Parameters

right
Right operand. This parameter is only read from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Sub Method

Subtract the Vector passed as parameter from this instance.

Syntax

[System.CLSCompliant(false)]
[System.Obsolete("Use static Subtract() method instead.")]
public void Sub (ref Vector4 right)

Parameters

right
Right operand. This parameter is only read from.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Sub Method

Subtract one Vector from another

Syntax

public static Vector4 Sub (Vector4 a, Vector4 b)

Parameters

a
First operand
b
Second operand

Returns

Result of subtraction

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Sub Method

Subtract one Vector from another

Syntax

public static void Sub (ref Vector4 a, ref Vector4 b, out Vector4 result)

Parameters

a
First operand
b
Second operand
result
Result of subtraction

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Subtract Method

Subtract one Vector from another

Syntax

public static Vector4 Subtract (Vector4 a, Vector4 b)

Parameters

a
First operand
b
Second operand

Returns

Result of subtraction

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Subtract Method

Subtract one Vector from another

Syntax

public static void Subtract (ref Vector4 a, ref Vector4 b, out Vector4 result)

Parameters

a
First operand
b
Second operand
result
Result of subtraction

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

ToString Method

Returns a System.String that represents the current Vector4.

Syntax

public override string ToString ()

Returns

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Transform Method

Transform a Vector by the given Matrix

Syntax

public static Vector4 Transform (Vector4 vec, Matrix4 mat)

Parameters

vec
The vector to transform
mat
The desired transformation

Returns

The transformed vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Transform Method

Transform a Vector by the given Matrix

Syntax

public static void Transform (ref Vector4 vec, ref Matrix4 mat, out Vector4 result)

Parameters

vec
The vector to transform
mat
The desired transformation
result
The transformed vector

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

UnitW Field

Defines a unit-length Vector4 that points towards the W-axis.

Syntax

public static Vector4 UnitW

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

UnitX Field

Defines a unit-length Vector4 that points towards the X-axis.

Syntax

public static Vector4 UnitX

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

UnitY Field

Defines a unit-length Vector4 that points towards the Y-axis.

Syntax

public static Vector4 UnitY

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

UnitZ Field

Defines a unit-length Vector4 that points towards the Z-axis.

Syntax

public static Vector4 UnitZ

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

W Field

The W component of the Vector4.

Syntax

public float W

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

X Field

The X component of the Vector4.

Syntax

public float X

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Xy Property

Gets or sets an OpenTK.Vector2 with the X and Y components of this instance.

Syntax

public Vector2 Xy { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Xyz Property

Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.

Syntax

public Vector3 Xyz { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Y Field

The Y component of the Vector4.

Syntax

public float Y

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Z Field

The Z component of the Vector4.

Syntax

public float Z

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0

Zero Field

Defines a zero-length Vector4.

Syntax

public static Vector4 Zero

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AtomicEngine
Assembly: AtomicNET (in AtomicNET.dll)
Assembly Versions: 1.0.0.0