Table of contents

Vector4

The Vector4 class represents a four-dimensional vector.

Definition

Module: dynamsoft_core

class Vector4

Methods

Method Description
__init__ Initializes a new instance of the Vector4 class.
__getitem__ Gets the component value at the specified index in the Vector4.
__setitem__ Sets the components value of a four-dimensional vector.

__init__

Initializes a new instance of the Vector4 class.

def __init__(self):

__setitem__

Sets the components value at the specified index in the Vector4.

def __setitem__(self, index: int, value: int) -> None:

Parameters

index The index at which to set the value.

value The component value to assign at the specified index.

__getitem__

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

def __getitem__(self, index: int) -> int:

Parameters

index An integer index used to access the component value of the Vector4.

Return Value

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

Is this page helpful?

YesYes NoNo

In this article: