for the FPS classicists... skew matrix constructor
parent
ad2bffd4da
commit
96ec54106b
|
@ -77,6 +77,16 @@ IN: math.matrices
|
||||||
{ 0.0 0.0 -1.0 0.0 }
|
{ 0.0 0.0 -1.0 0.0 }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
:: skew-matrix4 ( theta -- matrix )
|
||||||
|
theta tan :> zf
|
||||||
|
|
||||||
|
{
|
||||||
|
{ 1.0 0.0 0.0 0.0 }
|
||||||
|
{ 0.0 1.0 0.0 0.0 }
|
||||||
|
{ 0.0 zf 1.0 0.0 }
|
||||||
|
{ 0.0 0.0 0.0 1.0 }
|
||||||
|
} ;
|
||||||
|
|
||||||
! Matrix operations
|
! Matrix operations
|
||||||
: mneg ( m -- m ) [ vneg ] map ;
|
: mneg ( m -- m ) [ vneg ] map ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue