AtomicNET : AtomicEngine Namespace

Vector2 Struct

Represents a 2D vector using two single-precision floating-point numbers.

Syntax

public struct Vector2 : IEquatable<Vector2>

Remarks

The Vector2 structure is suitable for interoperation with unmanaged code requiring two 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 Vector2 from the given Vector2.
Constructs a new Vector2 from the given Vector3.
Constructs a new Vector2 from the given Vector4.
Constructs a new Vector2.

Public Fields

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

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).
[read-only]
PerpendicularLeft Vector2 . Gets the perpendicular vector on the left side of this vector.
[read-only]
PerpendicularRight Vector2 . Gets the perpendicular vector on the right side of this vector.

Public Methods

Add (Vector2)
Add the Vector passed as parameter to this instance.
Add (ref Vector2)
Add the Vector passed as parameter to this instance.
static
Add (Vector2, Vector2) : Vector2
Adds two vectors.
static
Add (ref Vector2, ref Vector2, out Vector2)
Adds two vectors.
static
BaryCentric (Vector2, Vector2, Vector2, float, float) : Vector2
Interpolate 3 Vectors using Barycentric coordinates
static
BaryCentric (ref Vector2, ref Vector2, ref Vector2, float, float, out Vector2)
Interpolate 3 Vectors using Barycentric coordinates
static
CatmullRom (Vector2, Vector2, Vector2, Vector2, float) : Vector2
Documentation for this section has not yet been entered.
static
Clamp (Vector2, Vector2, Vector2) : Vector2
Clamp a vector to the given minimum and maximum vectors
static
Clamp (ref Vector2, ref Vector2, ref Vector2, out Vector2)
Clamp a vector to the given minimum and maximum vectors
static
ComponentMax (Vector2, Vector2) : Vector2
Calculate the component-wise maximum of two vectors
static
ComponentMax (ref Vector2, ref Vector2, out Vector2)
Calculate the component-wise maximum of two vectors
static
ComponentMin (Vector2, Vector2) : Vector2
Calculate the component-wise minimum of two vectors
static
ComponentMin (ref Vector2, ref Vector2, out Vector2)
Calculate the component-wise minimum of two vectors
static
Distance (Vector2, Vector2) : float
Documentation for this section has not yet been entered.
static
Distance (ref Vector2, ref Vector2, out float)
Documentation for this section has not yet been entered.
static
DistanceSquared (Vector2, Vector2) : float
Documentation for this section has not yet been entered.
static
DistanceSquared (ref Vector2, ref Vector2, out float)
Documentation for this section has not yet been entered.
Div (float)
Divide this instance by a scalar.
static
Div (Vector2, float) : Vector2
Divide a vector by a scalar
static
Div (ref Vector2, float, out Vector2)
Divide a vector by a scalar
static
Divide (Vector2, Vector2) : Vector2
Divides a vector by the components of a vector (scale).
static
Divide (Vector2, float) : Vector2
Divides a vector by a scalar.
static
Divide (ref Vector2, ref Vector2, out Vector2)
Divide a vector by the components of a vector (scale).
static
Divide (ref Vector2, float, out Vector2)
Divides a vector by a scalar.
static
Dot (Vector2, Vector2) : float
Calculate the dot (scalar) product of two vectors
static
Dot (ref Vector2, ref Vector2, out float)
Calculate the dot (scalar) product of two vectors
Equals (Vector2) : 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 (Vector2, Vector2, float) : Vector2
Returns a new Vector that is the linear blend of the 2 given Vectors
static
Lerp (ref Vector2, ref Vector2, float, out Vector2)
Returns a new Vector that is the linear blend of the 2 given Vectors
static
Max (Vector2, Vector2) : Vector2
Returns the Vector3 with the minimum magnitude
static
Min (Vector2, Vector2) : Vector2
Returns the Vector3 with the minimum magnitude
Mult (float)
Multiply this instance by a scalar.
static
Mult (Vector2, float) : Vector2
Multiply a vector and a scalar
static
Mult (ref Vector2, float, out Vector2)
Multiply a vector and a scalar
static
Multiply (Vector2, Vector2) : Vector2
Multiplies a vector by the components a vector (scale).
static
Multiply (Vector2, float) : Vector2
Multiplies a vector by a scalar.
static
Multiply (ref Vector2, ref Vector2, out Vector2)
Multiplies a vector by the components of a vector (scale).
static
Multiply (ref Vector2, float, out Vector2)
Multiplies a vector by a scalar.
Normalize ()
Scales the Vector2 to unit length.
static
Normalize (Vector2) : Vector2
Scale a vector to unit length
static
Normalize (ref Vector2, out Vector2)
Scale a vector to unit length
NormalizeFast ()
Scales the Vector2 to approximately unit length.
static
NormalizeFast (Vector2) : Vector2
Scale a vector to approximately unit length
static
NormalizeFast (ref Vector2, out Vector2)
Scale a vector to approximately unit length
Scale (Vector2)
Scales this instance by the given parameter.
Scale (ref Vector2)
Scales this instance by the given parameter.
Scale (float, float)
Scales the current Vector2 by the given amounts.
Sub (Vector2)
Subtract the Vector passed as parameter from this instance.
Sub (ref Vector2)
Subtract the Vector passed as parameter from this instance.
static
Sub (Vector2, Vector2) : Vector2
Subtract one Vector from another
static
Sub (ref Vector2, ref Vector2, out Vector2)
Subtract one Vector from another
static
Subtract (Vector2, Vector2) : Vector2
Subtract one Vector from another
static
Subtract (ref Vector2, ref Vector2, out Vector2)
Subtract one Vector from another
override
ToString () : string
Returns a System.String that represents the current Vector2.
static
Transform (Vector2, Quaternion) : Vector2
Documentation for this section has not yet been entered.
static
Transform (ref Vector2, ref Quaternion, out Vector2)
Documentation for this section has not yet been entered.

Public Operators

static
Addition (Vector2, Vector2) Adds the specified instances.
static
Division (Vector2, float) Divides the specified instance by a scalar.
static
Equality (Vector2, Vector2) Compares the specified instances for equality.
static
Inequality (Vector2, Vector2) Compares the specified instances for inequality.
static
Multiply (Vector2, Vector2) Documentation for this section has not yet been entered.
static
Multiply (Vector2, float) Multiplies the specified instance by a scalar.
static
Multiply (float, Vector2) Multiplies the specified instance by a scalar.
static
Subtraction (Vector2, Vector2) Subtracts the specified instances.
static
UnaryNegation Negates the specified instance.

Member Details

Vector2 Constructor

Constructs a new Vector2 from the given Vector2.

Syntax

[System.Obsolete]
public Vector2 (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

Vector2 Constructor

Constructs a new Vector2 from the given Vector3.

Syntax

[System.Obsolete]
public Vector2 (Vector3 v)

Parameters

v
The Vector3 to copy components from. Z is discarded.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Vector2 Constructor

Constructs a new Vector2 from the given Vector4.

Syntax

[System.Obsolete]
public Vector2 (Vector4 v)

Parameters

v
The Vector4 to copy components from. Z and W are discarded.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Vector2 Constructor

Constructs a new Vector2.

Syntax

public Vector2 (float x, float y)

Parameters

x
The x coordinate of the net Vector2.
y
The y coordinate of the net Vector2.

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 (Vector2 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 Vector2 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 Vector2 Add (Vector2 a, Vector2 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 Vector2 a, ref Vector2 b, out Vector2 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 Vector2 BaryCentric (Vector2 a, Vector2 b, Vector2 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 Vector2 a, ref Vector2 b, ref Vector2 c, float u, float v, out Vector2 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

CatmullRom Method

Documentation for this section has not yet been entered.

Syntax

public static Vector2 CatmullRom (Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, float amount)

Parameters

value1
Documentation for this section has not yet been entered.
value2
Documentation for this section has not yet been entered.
value3
Documentation for this section has not yet been entered.
value4
Documentation for this section has not yet been entered.
amount
Documentation for this section has not yet been entered.

Returns

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

Clamp Method

Clamp a vector to the given minimum and maximum vectors

Syntax

public static Vector2 Clamp (Vector2 vec, Vector2 min, Vector2 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 Vector2 vec, ref Vector2 min, ref Vector2 max, out Vector2 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

ComponentMax Method

Calculate the component-wise maximum of two vectors

Syntax

public static Vector2 ComponentMax (Vector2 a, Vector2 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

ComponentMax Method

Calculate the component-wise maximum of two vectors

Syntax

public static void ComponentMax (ref Vector2 a, ref Vector2 b, out Vector2 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

ComponentMin Method

Calculate the component-wise minimum of two vectors

Syntax

public static Vector2 ComponentMin (Vector2 a, Vector2 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

ComponentMin Method

Calculate the component-wise minimum of two vectors

Syntax

public static void ComponentMin (ref Vector2 a, ref Vector2 b, out Vector2 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

Distance Method

Documentation for this section has not yet been entered.

Syntax

public static float Distance (Vector2 value1, Vector2 value2)

Parameters

value1
Documentation for this section has not yet been entered.
value2
Documentation for this section has not yet been entered.

Returns

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

Distance Method

Documentation for this section has not yet been entered.

Syntax

public static void Distance (ref Vector2 value1, ref Vector2 value2, out float result)

Parameters

value1
Documentation for this section has not yet been entered.
value2
Documentation for this section has not yet been entered.
result
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

DistanceSquared Method

Documentation for this section has not yet been entered.

Syntax

public static float DistanceSquared (Vector2 value1, Vector2 value2)

Parameters

value1
Documentation for this section has not yet been entered.
value2
Documentation for this section has not yet been entered.

Returns

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

DistanceSquared Method

Documentation for this section has not yet been entered.

Syntax

public static void DistanceSquared (ref Vector2 value1, ref Vector2 value2, out float result)

Parameters

value1
Documentation for this section has not yet been entered.
value2
Documentation for this section has not yet been entered.
result
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

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

[System.Obsolete("Use static Divide() method instead.")]
public static Vector2 Div (Vector2 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

[System.Obsolete("Use static Divide() method instead.")]
public static void Div (ref Vector2 a, float f, out Vector2 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 Vector2 Divide (Vector2 vector, Vector2 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 Vector2 Divide (Vector2 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 Vector2 vector, ref Vector2 scale, out Vector2 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 Vector2 vector, float scale, out Vector2 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 (scalar) product of two vectors

Syntax

public static float Dot (Vector2 left, Vector2 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 (scalar) product of two vectors

Syntax

public static void Dot (ref Vector2 left, ref Vector2 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 (Vector2 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

Vector2.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

Vector2.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

Vector2.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 Vector2 Lerp (Vector2 a, Vector2 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 Vector2 a, ref Vector2 b, float blend, out Vector2 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

Returns the Vector3 with the minimum magnitude

Syntax

public static Vector2 Max (Vector2 left, Vector2 right)

Parameters

left
Left operand
right
Right operand

Returns

The minimum Vector3

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

Returns the Vector3 with the minimum magnitude

Syntax

public static Vector2 Min (Vector2 left, Vector2 right)

Parameters

left
Left operand
right
Right operand

Returns

The minimum Vector3

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

[System.Obsolete("Use static Multiply() method instead.")]
public static Vector2 Mult (Vector2 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

[System.Obsolete("Use static Multiply() method instead.")]
public static void Mult (ref Vector2 a, float f, out Vector2 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 Vector2 Multiply (Vector2 vector, Vector2 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 Vector2 Multiply (Vector2 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 Vector2 vector, ref Vector2 scale, out Vector2 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 Vector2 vector, float scale, out Vector2 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 Vector2 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 Vector2 Normalize (Vector2 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 Vector2 vec, out Vector2 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 Vector2 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 Vector2 NormalizeFast (Vector2 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 Vector2 vec, out Vector2 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 Vector2 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 the specified instances.

Syntax

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

Parameters

left
Left operand.
right
Right operand.

Returns

Result of addition.

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 the specified instance by a scalar.

Syntax

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

Parameters

vec
Left operand
scale
Right 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

op_Equality Method

Compares the specified instances for equality.

Syntax

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

Parameters

left
Left operand.
right
Right operand.

Returns

True if both 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

op_Inequality Method

Compares the specified instances for inequality.

Syntax

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

Parameters

left
Left operand.
right
Right operand.

Returns

True if both instances are not 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

op_Multiply Method

Documentation for this section has not yet been entered.

Syntax

public static Vector2 operator* (Vector2 value1, Vector2 value2)

Parameters

value1
Documentation for this section has not yet been entered.
value2
Documentation for this section has not yet been entered.

Returns

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

op_Multiply Method

Multiplies the specified instance by a scalar.

Syntax

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

Parameters

vec
Left operand.
scale
Right operand.

Returns

Result of 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

op_Multiply Method

Multiplies the specified instance by a scalar.

Syntax

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

Parameters

scale
Left operand.
vec
Right operand.

Returns

Result of 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

op_Subtraction Method

Subtracts the specified instances.

Syntax

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

Parameters

left
Left operand.
right
Right 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

op_UnaryNegation Method

Negates the specified instance.

Syntax

public static Vector2 operator- (Vector2 vec)

Parameters

vec
Operand.

Returns

Result of negation.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

PerpendicularLeft Property

Gets the perpendicular vector on the left side of this vector.

Syntax

public Vector2 PerpendicularLeft { get; }

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

PerpendicularRight Property

Gets the perpendicular vector on the right side of this vector.

Syntax

public Vector2 PerpendicularRight { get; }

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

Scale Method

Scales this instance by the given parameter.

Syntax

[System.Obsolete("Use static Multiply() method instead.")]
public void Scale (Vector2 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 Vector2 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 Vector2 by the given amounts.

Syntax

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

Parameters

sx
The scale of the X component.
sy
The scale of the Y 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 Vector2 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 (Vector2 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 Vector2 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

[System.Obsolete("Use static Subtract() method instead.")]
public static Vector2 Sub (Vector2 a, Vector2 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

[System.Obsolete("Use static Subtract() method instead.")]
public static void Sub (ref Vector2 a, ref Vector2 b, out Vector2 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 Vector2 Subtract (Vector2 a, Vector2 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 Vector2 a, ref Vector2 b, out Vector2 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 Vector2.

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

Documentation for this section has not yet been entered.

Syntax

public static Vector2 Transform (Vector2 value, Quaternion rotation)

Parameters

value
Documentation for this section has not yet been entered.
rotation
Documentation for this section has not yet been entered.

Returns

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

Transform Method

Documentation for this section has not yet been entered.

Syntax

public static void Transform (ref Vector2 value, ref Quaternion rotation, out Vector2 result)

Parameters

value
Documentation for this section has not yet been entered.
rotation
Documentation for this section has not yet been entered.
result
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

UnitX Field

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

Syntax

public static readonly Vector2 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 Vector2 that points towards the Y-axis.

Syntax

public static readonly Vector2 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

X Field

The X component of the Vector2.

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

Y Field

The Y component of the Vector2.

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

Zero Field

Defines a zero-length Vector2.

Syntax

public static readonly Vector2 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