{"id":1996,"date":"2018-04-27T07:04:56","date_gmt":"2018-04-27T11:04:56","guid":{"rendered":"http:\/\/ninecrows.com\/career\/?p=1996"},"modified":"2018-04-27T07:04:56","modified_gmt":"2018-04-27T11:04:56","slug":"floating-point-3d-primitives-in-java","status":"publish","type":"post","link":"https:\/\/ninecrows.com\/career\/2018\/04\/27\/floating-point-3d-primitives-in-java\/","title":{"rendered":"Floating point 3D primitives in Java&#8230;"},"content":{"rendered":"<p class=\"mentions-texteditor__content\"><a href=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1995\" data-permalink=\"https:\/\/ninecrows.com\/career\/2018\/04\/27\/floating-point-3d-primitives-in-java\/img_20180426_184311\/\" data-orig-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?fit=3036%2C4048&amp;ssl=1\" data-orig-size=\"3036,4048\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Pixel XL&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1524768192&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.67&quot;,&quot;iso&quot;:&quot;206&quot;,&quot;shutter_speed&quot;:&quot;0.008306&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"IMG_20180426_184311\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?fit=225%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?fit=474%2C632&amp;ssl=1\" class=\"alignleft size-thumbnail wp-image-1995\" src=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?resize=150%2C150\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/04\/IMG_20180426_184311.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>I&#8217;ve been looking for some vector (3D) primitives in Java. I was hoping to find an existing library (something like <a href=\"http:\/\/blitz.sourceforge.net\/\">blitz<\/a> or <a href=\"https:\/\/math.nist.gov\/tnt\/\">tnt<\/a> in c++). So far no luck so it looks as if I&#8217;ll wind up writing those I need myself.<\/p>\n<p class=\"mentions-texteditor__content\">Shouldn&#8217;t be too bad really. Mostly looking for things like dot product, cross product and some matrix multiplies in floating point. I did find pieces here and there, but none of the libraries I came across has the full set and since everyone implements their own point, matrix and vector classes, they don&#8217;t play well together.<\/p>\n<p>The pieces I need shouldn&#8217;t take all that long to write and test so I&#8217;m going to go that way. Not looking for anything attached to 3D rendering, just need to work with some geometry in three-space and get some results. In the end, probably not a bad exercise.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been looking for some vector (3D) primitives in Java. I was hoping to find an existing library (something like blitz or tnt in c++). So far no luck so it looks as if I&#8217;ll wind up writing those I need myself. Shouldn&#8217;t be too bad really. Mostly looking for things like dot product, cross &hellip; <a href=\"https:\/\/ninecrows.com\/career\/2018\/04\/27\/floating-point-3d-primitives-in-java\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Floating point 3D primitives in Java&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Floating point 3D primitives in Java...","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1996","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7F2Qc-wc","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/1996"}],"collection":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/comments?post=1996"}],"version-history":[{"count":1,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/1996\/revisions"}],"predecessor-version":[{"id":1997,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/1996\/revisions\/1997"}],"wp:attachment":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/media?parent=1996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/categories?post=1996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/tags?post=1996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}