Table of contents

Vector4

The Vector4 class represents a four-dimensional vector.

Definition

Package: com.dynamsoft.core.basic_structures

class Vector4

Attributes

Attribute Type Description
value int[] An array of 4 integers representing the vector components.

Constructors

Constructor Description
Vector4() Default constructor. Initializes a new instance of the Vector4 class.
Vector4(Vector4 v) Copy constructor.
Vector4(int v1, int v2, int v3, int v4) Initializes a new instance with specific values.

Methods

Method Description
set Sets the components value of the four-dimensional vector.
getItems Gets the component values as an array.

Attributes

value

An array of 4 integers representing the vector components.

public int[] value

Constructors

Vector4

Default constructor. Initializes a new instance of the Vector4 class.

Vector4()

Vector4

Copy constructor. Initializes a new instance by copying another Vector4.

Vector4(Vector4 v)

Parameters

v The Vector4 object to copy.

Vector4

Initializes a new instance of the Vector4 class with specific values.

Vector4(int v1, int v2, int v3, int v4)

Parameters

v1 The first component value.

v2 The second component value.

v3 The third component value.

v4 The fourth component value.

Methods

set

Sets the components value of the four-dimensional vector.

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

Parameters

v1 The first component value.

v2 The second component value.

v3 The third component value.

v4 The fourth component value.

getItems

Gets the component values as an array.

int[] getItems()

Return Value

Returns an array containing the four component values of the vector.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: