AtomicNET : AtomicEngine Namespace

IntVector2 Struct

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

Syntax

public struct IntVector2 : IEquatable<IntVector2>

Remarks

The IntVector2 structure is suitable for interoperation with unmanaged code requiring two consecutive ints.

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 IntVector2 from the given IntVector2.
Constructs a new IntVector2 from the given Vector2.
Constructs a new IntVector2.

Public Fields

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

Public Properties

[read-only]
IsEmpty bool . Documentation for this section has not yet been entered.
[read-only]
Length int . Gets the length (magnitude) of the vector.
[read-only]
LengthFast int . Gets an approximation of the vector length (magnitude).
[read-only]
LengthSquared int . Gets the square of the vector length (magnitude).
[read-only]
PerpendicularLeft IntVector2 . Gets the perpendicular vector on the left side of this vector.
[read-only]
PerpendicularRight IntVector2 . Gets the perpendicular vector on the right side of this vector.

Public Methods

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

Public Operators

static
Addition (IntVector2, IntVector2) Adds the specified instances.
static
Division (IntVector2, int) Divides the specified instance by a scalar.
static
Equality (IntVector2, IntVector2) Compares the specified instances for equality.
static
Inequality (IntVector2, IntVector2) Compares the specified instances for inequality.
static
Multiply (IntVector2, int) Multiplies the specified instance by a scalar.
static
Multiply (int, IntVector2) Multiplies the specified instance by a scalar.
static
Subtraction (IntVector2, IntVector2) Subtracts the specified instances.
static
UnaryNegation Negates the specified instance.

Member Details

IntVector2 Constructor

Constructs a new IntVector2 from the given IntVector2.

Syntax

[System.Obsolete]
public IntVector2 (IntVector2 v)

Parameters

v
The IntVector2 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

IntVector2 Constructor

Constructs a new IntVector2 from the given Vector2.

Syntax

[System.Obsolete]
public IntVector2 (Vector2 v)

Parameters

v
The IntVector2 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

IntVector2 Constructor

Constructs a new IntVector2.

Syntax

public IntVector2 (int x, int y)

Parameters

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

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 (IntVector2 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 IntVector2 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 IntVector2 Add (IntVector2 a, IntVector2 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 IntVector2 a, ref IntVector2 b, out IntVector2 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 IntVector2 BaryCentric (IntVector2 a, IntVector2 b, IntVector2 c, int u, int 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 IntVector2 a, ref IntVector2 b, ref IntVector2 c, int u, int v, out IntVector2 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 IntVector2 Clamp (IntVector2 vec, IntVector2 min, IntVector2 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 IntVector2 vec, ref IntVector2 min, ref IntVector2 max, out IntVector2 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 IntVector2 ComponentMax (IntVector2 a, IntVector2 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 IntVector2 a, ref IntVector2 b, out IntVector2 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 IntVector2 ComponentMin (IntVector2 a, IntVector2 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 IntVector2 a, ref IntVector2 b, out IntVector2 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

Div Method

Divide this instance by a scalar.

Syntax

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

Divide Method

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

Syntax

public static IntVector2 Divide (IntVector2 vector, IntVector2 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 IntVector2 Divide (IntVector2 vector, int 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 IntVector2 vector, ref IntVector2 scale, out IntVector2 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 IntVector2 vector, int scale, out IntVector2 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 int Dot (IntVector2 left, IntVector2 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 IntVector2 left, ref IntVector2 right, out int 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 (IntVector2 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

IsEmpty Property

Documentation for this section has not yet been entered.

Syntax

public bool IsEmpty { 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

Length Property

Gets the length (magnitude) of the vector.

Syntax

public int Length { get; }

See Also

IntVector2.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 int LengthFast { get; }

See Also

IntVector2.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 int LengthSquared { get; }

See Also

IntVector2.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 IntVector2 Lerp (IntVector2 a, IntVector2 b, int 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 IntVector2 a, ref IntVector2 b, int blend, out IntVector2 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 IntVector2 Max (IntVector2 left, IntVector2 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 IntVector2 Min (IntVector2 left, IntVector2 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 (int 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

Multiply Method

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

Syntax

public static IntVector2 Multiply (IntVector2 vector, IntVector2 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 IntVector2 Multiply (IntVector2 vector, int 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 IntVector2 vector, ref IntVector2 scale, out IntVector2 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 IntVector2 vector, int scale, out IntVector2 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 IntVector2 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 IntVector2 Normalize (IntVector2 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 IntVector2 vec, out IntVector2 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 IntVector2 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 IntVector2 NormalizeFast (IntVector2 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 IntVector2 vec, out IntVector2 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 IntVector2 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 IntVector2 operator+ (IntVector2 left, IntVector2 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 IntVector2 operator/ (IntVector2 vec, int 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== (IntVector2 left, IntVector2 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!= (IntVector2 left, IntVector2 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

Multiplies the specified instance by a scalar.

Syntax

public static IntVector2 operator* (IntVector2 vec, int 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 IntVector2 operator* (int scale, IntVector2 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 IntVector2 operator- (IntVector2 left, IntVector2 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 IntVector2 operator- (IntVector2 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 IntVector2 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 IntVector2 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 (IntVector2 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 IntVector2 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 IntVector2 by the given amounts.

Syntax

[System.Obsolete("Use static Multiply() method instead.")]
public void Scale (int sx, int 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 IntVector2 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 (IntVector2 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 IntVector2 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

Subtract Method

Subtract one Vector from another

Syntax

public static IntVector2 Subtract (IntVector2 a, IntVector2 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 IntVector2 a, ref IntVector2 b, out IntVector2 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 IntVector2.

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

UnitX Field

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

Syntax

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

Syntax

public static readonly IntVector2 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 IntVector2.

Syntax

public int 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 IntVector2.

Syntax

public int 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 IntVector2.

Syntax

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