IOLink C# 1.11.0
Loading...
Searching...
No Matches
IOLink.Vector3u64 Class Reference

An arithmetic vector. More...

Inheritance diagram for IOLink.Vector3u64:

Public Member Functions

 Vector3u64 (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Vector3u64 (params ulong[] values)
 
override bool Equals (object obj)
 
 Vector3u64 ()
 Create a vector with unitialized values.
 
 Vector3u64 (VectorXu64 other)
 Build a Vector from a VectorX of same type.
 
 Vector3u64 (VectorXu64 other, ulong padding)
 Build a vector from a VectorX of same type.
 
 Vector3u64 (Vector3u64 other)
 
uint Size ()
 Returns the size of the vector, which also correspond to vector number of dimension.
 
ulong At (uint index)
 Access vector's value at given index.
 
void SetAt (uint index, ulong value)
 Set value as given index.
 
double SquaredLength ()
 Returns the vector's norm, squared.
 
double Length ()
 Returns the vector's norm.
 
void Normalize ()
 Normalize the vector.
 
string ToString ()
 
ulong Dot (Vector3u64 v)
 Dot product of two vectors.
 
Vector3u64 Cross (Vector3u64 v)
 Cross product of two vectors.
 

Static Public Member Functions

static global::System.Runtime.InteropServices.HandleRef getCPtr (Vector3u64 obj)
 
static global::System.Runtime.InteropServices.HandleRef swigRelease (Vector3u64 obj)
 
static bool operator== (Vector3u64 v1, Vector3u64 v2)
 
static bool operator!= (Vector3u64 v1, Vector3u64 v2)
 
static Vector3u64 operator+ (Vector3u64 v1, Vector3u64 v2)
 
static Vector3u64 operator- (Vector3u64 v1, Vector3u64 v2)
 
static Vector3u64 operator* (Vector3u64 v, ulong value)
 
static Vector3u64 operator* (ulong value, Vector3u64 v)
 
static Vector3u64 operator/ (Vector3u64 v, ulong value)
 
static Vector3u64 operator* (Vector3u64 v1, Vector3u64 v2)
 
static Vector3u64 operator/ (Vector3u64 v1, Vector3u64 v2)
 
static bool operator< (Vector3u64 v1, Vector3u64 v2)
 
static bool operator<= (Vector3u64 v1, Vector3u64 v2)
 
static bool operator> (Vector3u64 v1, Vector3u64 v2)
 
static bool operator>= (Vector3u64 v1, Vector3u64 v2)
 
static Vector3u64 CreateUniform (ulong value)
 Create a vector with the given value for all components.
 
static Vector3u64 InternalDivides (Vector3u64 v, ulong value)
 
static Vector3u64 InternalDivides (Vector3u64 v1, Vector3u64 v2)
 
static bool InternalLess (Vector3u64 v1, Vector3u64 v2)
 
static bool InternalLessEqual (Vector3u64 v1, Vector3u64 v2)
 
static bool InternalGreater (Vector3u64 v1, Vector3u64 v2)
 
static bool InternalGreaterEqual (Vector3u64 v1, Vector3u64 v2)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Protected Attributes

bool swigCMemOwn
 

Properties

ulong this[uint index] [get, set]
 

Detailed Description

An arithmetic vector.

Parameters
TThe type wrote in the vector.
NThe size, or number of dimension of the vector.

Aliases can be used to made this class more practical to use. They use the following convention: VectorNX Where N is the size and X the type. The types currently available are:

  • U8 and I8 respectively for unsigned and signed 8bits integers.
  • U16 and I16 respectively for unsigned and signed 16bits integers.
  • U32 and I32 respectively for unsigned and signed 32bits integers.
  • U64 and I64 respectively for unsigned and signed 64bits integers.
  • F for single precision floats.
  • D for double precision floats.

Examples:

  • Vector2i32: 2 dimensional 32bits signed integer.
  • Vector3f: 3 dimensionnal single precision float.

Constructor & Destructor Documentation

◆ Vector3u64() [1/2]

IOLink.Vector3u64.Vector3u64 ( VectorXu64  other)
inline

Build a Vector from a VectorX of same type.

If the VectorX has a size different of N, behavior is undefined.

◆ Vector3u64() [2/2]

IOLink.Vector3u64.Vector3u64 ( VectorXu64  other,
ulong  padding 
)
inline

Build a vector from a VectorX of same type.

Parameters
otherVectorX to use to build the new vector
paddingValue to put at the end of vector to fill missing values. Fox example, Vector4({4, 5}, 0) will create the Vector {4, 5, 0, 0}.

Member Function Documentation

◆ CreateUniform()

static Vector3u64 IOLink.Vector3u64.CreateUniform ( ulong  value)
inlinestatic

Create a vector with the given value for all components.

Parameters
valueThe value wich the vector's data will be filled.

◆ Cross()

Vector3u64 IOLink.Vector3u64.Cross ( Vector3u64  v)
inline

Cross product of two vectors.

Work only for vectors of size 3.

◆ Length()

double IOLink.Vector3u64.Length ( )
inline

Returns the vector's norm.

Specifically, it is the L1 norm that's computed here.

◆ SquaredLength()

double IOLink.Vector3u64.SquaredLength ( )
inline

Returns the vector's norm, squared.

Specifically, it is the L1 norm that's computed here.


The documentation for this class was generated from the following file: