Table of contents

CVector4

The CVector4 class represents a four-dimensional vector.

Definition

Namespace: dynamsoft::basic_structures

Assembly: DynamsoftCore

class CVector4;

Methods Summary

Method Description
Set Sets the components value of a four-dimensional vector.
operator[] Gets the component value at the specified index in the CVector4.

Set

Sets the components value of a four-dimensional vector.

void Set(int v1, int v2, int v3, int v4)

Parameters

[in] v1 The first component value of the four-dimensional vector.

[in] v2 The second component value of the four-dimensional vector.

[in] v3 The third component value of the four-dimensional vector.

[in] v4 The fourth component value of the four-dimensional vector.

operator[]

Gets the component value at the specified index in the CVector4.

int& operator[](int i)

Parameters

[in] i An integer index used to access the component value of the CVector4.

Return Value

A reference to the component value at the specified index in the CVector4.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: