선형대수학

선형대수학

Imagem de capa
Math
scale
move
rotation pitch(x axis), yaw(y axis), roll(z axis)

n = normal, l = light vector, h = half vector, v = view

https://datastory1.blogspot.com/2017/11/r-markdown_2.html

숫자가 아닐떄 True,

bool linesegment_vs_plane(float3 p0, float3 p1, float3 pn, out float lerp_val)
{
    float3 u = p1 - p0;
    float D = dot(pn, u);
    float N = -dot(pn, p0);
    
    lerp_val = N / D;
    return !(lerp_val != saturate(lerp_val));
}

D = Direction

행렬 연산 애니메이션


anim0


anim1


anim2


anim3


anim6