LisaacTM Platform

VECTOR2


(x,y) vector
Inherit/Insert Summary
parent_object No developed.
 
Constructor Summary
create
 
Slot Summary
x
y
make
copy
zero
set_x
set_y
get
getv
Suffix '-'
Infix '+'
Infix '-'
Infix '*'
Infix '/'
magnitude
magnitude = sqrt(x^2 + y^2)
normalize
normalize self vector (of length 1)
normalized
return a normalized vector (of length 1) from self
dot
print
 

Inherit/Insert Detail

parent_object

.../extra/math/vector2.li line #9

Section:
Inherit

Profile:
- SelfSELFparent_object : OBJECT

Constructor Detail

create

.../extra/math/vector2.li line #16

Section:
Public

Profile:
- SelfSELFcreate  ( a : E, b : E) : SELF

Detail slot

x

.../extra/math/vector2.li line #13

Section:
Public

Profile:
+ SelfSELFx : E

y

.../extra/math/vector2.li line #14

Section:
Public

Profile:
+ SelfSELFy : E

make

.../extra/math/vector2.li line #23

Section:
Public

Profile:
- SelfSELFmake  ( a : E, b : E)

copy

.../extra/math/vector2.li line #29

Section:
Public

Profile:
- SelfSELFcopy : SELF

zero

.../extra/math/vector2.li line #34

Section:
Public

Profile:
- SelfSELFzero : SELF

set_x

.../extra/math/vector2.li line #36

Section:
Public

Profile:
- SelfSELFset_x   v : E

set_y

.../extra/math/vector2.li line #40

Section:
Public

Profile:
- SelfSELFset_y   v : E

get

.../extra/math/vector2.li line #45

Section:
Public

Profile:
- SelfSELFget :( EE)

getv

.../extra/math/vector2.li line #50

Section:
Public

Profile:
- SelfSELFgetv : FAST_ARRAYE)

Suffix '-'

.../extra/math/vector2.li line #60

Section:
Public

Profile:
- SelfSELF- ' : SELF

Infix '+'

.../extra/math/vector2.li line #65

Section:
Public

Profile:
- SelfSELF+ ' Left 80  other : SELFSELF

Infix '-'

.../extra/math/vector2.li line #70

Section:
Public

Profile:
- SelfSELF- ' Left 80  other : SELFSELF

Infix '*'

.../extra/math/vector2.li line #75

Section:
Public

Profile:
- SelfSELF* ' Left 100  scalar : ESELF

Infix '/'

.../extra/math/vector2.li line #80

Section:
Public

Profile:
- SelfSELF/ ' Left 100  scalar : ESELF

magnitude

.../extra/math/vector2.li line #86

Section:
Public

Profile:
- SelfSELFmagnitude : E

Description:
magnitude = sqrt(x^2 + y^2)

normalize

.../extra/math/vector2.li line #92

Section:
Public

Profile:
- SelfSELFnormalize 

Description:
normalize self vector (of length 1)

normalized

.../extra/math/vector2.li line #100

Section:
Public

Profile:
- SelfSELFnormalized : SELF

Description:
return a normalized vector (of length 1) from self

dot

.../extra/math/vector2.li line #106

Section:
Public

Profile:
- SelfSELFdot   other : SELFE

print

.../extra/math/vector2.li line #111

Section:
Public

Profile:
- SelfSELFprint