mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-15 23:13:53 +01:00
9 lines
210 B
Plaintext
9 lines
210 B
Plaintext
function __ray(origin, direction) constructor {
|
|
self.origin = origin;
|
|
self.direction = direction.normalize();
|
|
|
|
static sampleDistance = function(t) {
|
|
INLINE
|
|
return origin.add(direction.multiply(t));
|
|
}
|
|
} |