TypeLibF REALbasic Support Plugin

VectorF_3D Class

This class defines a 3D vector structure that uses floating point precision.

Object
   VectorF_3D

class VectorF_3D

Constructors

VectorF_3DThe default constructor
VectorF_3DA constructor that takes x,y and z coordinates as parameters.

Properties

CloneReturns a clone of the VectorF_3D.
xSets or gets the x coordinate of the vector.
ySets or gets the y coordinate of the vector.
zSets or gets the z coordinate of the vector.

Methods

AbsDoes Absolute value on the Vector.
AngleCalculates the angle between two vectors.
ClampTrims values in the vector to values between minimum and maximum ranges.
DistanceReturns the distance to another vector.
EqualReturns true if two vectors are equal.
LengthReturns the length of the vector.
NormalizeNormalizes the vector.
Operator_AddA + operator to be able to add two vectors together.
Operator_NegateA negate operator to be able to return the negate a vector.
Operator_SubtractA - operator to be able to subtract a vector from another.
ScaleScales the vector by a given factor.
SetSets all the values of the vector in one call.