Handbook
Glossary
Vector4
Vocabulary
raylib
Class description
Represents a 4D 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:
Vector4
{
x
float
initial:
0.0
}
{
y
float
initial:
0.0
}
{
z
float
initial:
0.0
}
{
w
float
initial:
0.0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
raylib
;
M:
Vector4
clone
clone-underlying
\
Vector4
memory>struct
;
inline
USING:
kernel
raylib
sequences
;
M:
Vector4
length
drop
4
;
inline
USING:
kernel
raylib
sequences
;
M:
Vector4
like
over
length
4
=
[
drop
dup
Vector4?
[
first4
<Vector4>
]
unless
]
[
invalid-vector-length
]
if
;
inline
USING:
classes.struct
kernel
raylib
sequences
;
M:
Vector4
new-sequence
over
4
=
[
2drop
Vector4
(struct)
]
[
invalid-vector-length
]
if
;
inline
USING:
accessors
combinators
kernel
raylib
sequences.private
;
M:
Vector4
nth-unsafe
swap
{
{
0
[
x>>
]
}
{
1
[
y>>
]
}
{
2
[
z>>
]
}
{
3
[
w>>
]
}
}
case
;
USING:
accessors
combinators
kernel
raylib
sequences.private
;
M:
Vector4
set-nth-unsafe
swap
{
{
0
[
x<<
]
}
{
1
[
y<<
]
}
{
2
[
z<<
]
}
{
3
[
w<<
]
}
}
case
;
USING:
accessors
classes.struct
combinators.smart
raylib
;
M:
Vector4
struct-slot-values
{
[
x>>
]
[
y>>
]
[
z>>
]
[
w>>
]
}
cleave>array
;
inline