Skip to main content

Interface: VectorFieldVectorOptions

Defined in: mobjects/graphing/Vector.ts:7

Options for creating a VectorFieldVector

Properties

color?

optional color: string

Defined in: mobjects/graphing/Vector.ts:13

Stroke color. Default: '#58c4dd' (Manim blue)


direction

direction: Vector3Tuple

Defined in: mobjects/graphing/Vector.ts:9

The direction of the vector as [x, y, z]


maxLength?

optional maxLength: number

Defined in: mobjects/graphing/Vector.ts:19

Maximum length for vector fields. Default: Infinity (no cap)


startPoint?

optional startPoint: Vector3Tuple

Defined in: mobjects/graphing/Vector.ts:11

The starting point of the vector. Default: [0, 0, 0]


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/graphing/Vector.ts:15

Stroke width in pixels. Default: 2


tipLength?

optional tipLength: number

Defined in: mobjects/graphing/Vector.ts:17

Length of the arrow tip. Default: 0.2