Handbook
Glossary
Vector3
Vocabulary
raylib
Class description
Represents a 3D vector in Raylib. Implements the
Sequence protocol
.
Warning
Values are all single-precision where as Factor is double precision (see
float
)
Definition
USING:
alien.c-types
classes.struct
;
IN:
raylib
STRUCT:
Vector3
{
x
float
initial:
0.0
}
{
y
float
initial:
0.0
}
{
z
float
initial:
0.0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
raylib
;
M:
Vector3
clone
clone-underlying
\
Vector3
memory>struct
;
inline
USING:
kernel
raylib
sequences
;
M:
Vector3
length
drop
3
;
inline
USING:
kernel
raylib
sequences
;
M:
Vector3
like
over
length
3
=
[
drop
dup
Vector3?
[
first3
<Vector3>
]
unless
]
[
invalid-vector-length
]
if
;
inline
USING:
classes.struct
kernel
raylib
sequences
;
M:
Vector3
new-sequence
over
3
=
[
2drop
Vector3
(struct)
]
[
invalid-vector-length
]
if
;
inline
USING:
accessors
combinators
kernel
raylib
sequences.private
;
M:
Vector3
nth-unsafe
swap
{
{
0
[
x>>
]
}
{
1
[
y>>
]
}
{
2
[
z>>
]
}
}
case
;
USING:
accessors
combinators
kernel
raylib
sequences.private
;
M:
Vector3
set-nth-unsafe
swap
{
{
0
[
x<<
]
}
{
1
[
y<<
]
}
{
2
[
z<<
]
}
}
case
;
USING:
accessors
classes.struct
combinators.smart
raylib
;
M:
Vector3
struct-slot-values
{
[
x>>
]
[
y>>
]
[
z>>
]
}
cleave>array
;
inline