NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


python:geutil:vector

GEUtil::Vector

Description

Represents a 3d vector

Version

Beta 4.0

NameSpace

GEUtil

Inherits

None

Methods

Random

Sets values to random<br> Parameters: int minVal, int maxVal<br> Return: None<br>

IsValid

<br> Parameters: None<br> Return: bool<br>

Invalidate

<br> Parameters: None<br> Return: None<br>

Length

<br> Parameters: None<br> Return: float<br>

LengthSqr

<br> Parameters: None<br> Return: float<br>

Zero

Set all values to zero<br> Parameters: None<br> Return: None<br>

Negate

Invert vector<br> Parameters: None<br> Return: None<br>

IsZero

<br> Parameters: None<br> Return: bool<br>

NormalizeInPlace

<br> Parameters: None<br> Return: None<br>

IsLengthGreaterThan

<br> Parameters: float val<br> Return: bool<br>

IsLengthLessThan

<br> Parameters: float val<br> Return: None<br>

DistTo

<br> Parameters: GEUtil.Vector inVector<br> Return: float<br>

DistToSqr

<br> Parameters: GEUtil.Vector inVector<br> Return: float<br>

MulAdd

<br> Parameters: GEUtil.Vector a, GEUtil.Vector b, float scalar<br> Return: None<br>

Dot

<br> Parameters: GEUtil.Vector inVector<br> Return: float<br>

Length2D

Length of x and y<br> Parameters: None<br> Return: float<br>

Length2DSqr

Length of x and y squared<br> Parameters: None<br> Return: float<br>

python/geutil/vector.txt ยท Last modified: 2023/09/03 18:43 by 127.0.0.1