Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/inferno/appl/cmd/MiniLight/MinilLight.m

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



Minilight: module
{
	init:	fn(nil: ref Draw->Context, nil: list of string);
};

Vector: adt {
	x, y, z : real;

	negate : fn(v: self ref Vector);
	add : fn(v: self ref Vector, o : ref Vector);
	sub : fn(v: self ref Vector, o : ref Vector);
	mul : fn(v: self ref Vector, o : ref Vector);
	is_zero : fn(v: self ref Vector) : int;
	dot : fn(v: self ref Vector, o : ref Vector) : real;
	unitize : fn(v: self ref Vector) : ref Vector;
};



Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].