PageSourceSearch

https://quollengine.com/assets/js/c611daef.c9e0616f.js

js quollengine.com collected 2026-10-03 20:48:49 UTC 3,464 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3509],{9092:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>p,frontMatter:()=>c,metadata:()=>s,toc:()=>d});var t=r(5893),o=r(1151);const c={sidebar_position:200},i="Vector3",s={id:"scripting/math/vector3",title:"Vector3",description:"All APIs provided by Quoll utilize Vector3 for to represent 3D points, directions, velocities etc.",source:"@site/docs/scripting/math/vector3.md",sourceDirName:"scripting/math",slug:"/scripting/math/vector3",permalink:"/docs/scripting/math/vector3",draft:!1,unlisted:!1,editUrl:"https://github.com/QuollEngine/Docs/edit/main/docs/scripting/math/vector3.md",tags:[],version:"current",sidebarPosition:200,frontMatter:{sidebar_position:200},sidebar:"scriptingSidebar",previous:{title:"Standard library",permalink:"/docs/scripting/math/std"},next:{title:"Quaternion",permalink:"/docs/scripting/math/quaternion"}},l={},d=[{value:"Properties",id:"properties",level:2},{value:"<code>x: number</code>",id:"prop-x",level:3},{value:"<code>y: number</code>
1",id:"prop-y",level:3},{value:"<code>z: number</code>",id:"prop-z",level:3},{value:"Methods",id:"methods",level:2},{value:"<code>new(x: number, y: number, z: number): Vector3</code>",id:"method-new",level:3}];function a(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"vector3",children:"Vector3"}),"\n",(0,t.jsx)(n.p,{children:"All APIs provided by Quoll utilize Vector3 for to represent 3D points, directions, velocities etc."}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"prop-x",children:(0,t.jsx)(n.code,{children:"x: number"})}),"\n",(0,t.jsx)(n.p,{children:"X component of Vector3."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:"local v = Vector3.new(25.0, 10.0, 35.0)\nlocal x = v.x -- 25.0\n"})}),"\n",(0,t.jsx)(n.h3,{id:"prop-y",children:(0,t.jsx)(n.code,{children:"y: number"})}),"\n",(0,t.jsx)(n.p,{children:"Y component of Vector3."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:"local v = Vector3.new(25.0, 10.0, 35.0)\nlocal y = v.y -- 10.0\n"})}),"\n",(0,t.jsx)(n.h3,{id:"prop-z",children:(0,t.jsx)(n.code,{children:"z: number"})}),"\n",(0,t.jsx)(n.p,{children:"Z component of Vector3."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:"local v = Vector3.new(25.0, 10.0, 35.0)\nlocal z = v.z -- 35.0\n"})}),"\n",(0,t.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,t.jsx)(n.h3,{id:"method-new",children:(0,t.jsx)(n.code,{children:"new(x: number, y: number, z: number): Vector3"})}),"\n",(0,t.jsx)(n.p,{children:"Creates new Vector3 with provided values:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:"local v = Vector3.new(25.0, 10.0, 35.0)\n"})})]})}function p(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(a,{...e})}):a(e)}},1151:(e,n,r)=>{r.d(n,{Z:()=>s,a:()=>i});var t=r(7294);const o={},c=t.createContext(o);function i(e){const n=t.useContext(c);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),t.createElement(c.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.