Vector Functions

Home • Gallery • Tutorials • Download • Purchase • Site Map

Vector Functions Support

The Fractal Science Kit fractal generator Vector functions are associated with the Vector object:

Object Vector { P : Q }

The fields P and Q are complex numbers that define the beginning and terminating point of the vector, respectively.

The following example illustrates how you would define a Vector object using the object's constructor:

Vector v = Vector(P, Q)

This example assigns a vector to the variable v. The vector is defined by the arguments: P and Q, passed to the constructor.

Complex Vector.Magnitude(Vector v)
Complex Vector.Direction(Vector v)
Circle Vector.CreateLine(Vector v)

Vector.Magnitude returns the magnitude (length) of the vector. Vector.Direction returns the angle in radians counterclockwise relative to a horizontal line through P. Vector.CreateLine returns the line (as a Circle object) through P and Q.


Copyright 2004-2019 Ross Hilbert
All rights reserved